Codeunit 5895 Inventory Adjustment

Base Application, Microsoft.Inventory.Costing

Source AL, 3,603 lines

src/Layers/W1/BaseApp/Inventory/Costing/InventoryAdjustment.Codeunit.allines 22 to 37 of 3,603, Copyright (c) Microsoft Corporation. MIT

codeunit 5895 "Inventory Adjustment" implements "Inventory Adjustment", "Cost Adjustment With Params"{    Permissions = TableData Item = rm,                  TableData "Item Ledger Entry" = rm,                  TableData "Item Application Entry" = rimd,                  TableData "Value Entry" = rim,                  TableData "Avg. Cost Adjmt. Entry Point" = rimd,                  TableData "Inventory Adjmt. Entry (Order)" = rm;    trigger OnRun()    begin    end;    var        Item: Record Item;        FilterItem: Record Item;

All 3,603 lines

Events 88 in 29

[IntegrationEvent] OnAdjustOutbndAvgEntryOnBeforeForwardAvgCostToInbndEntries(var OutbndItemLedgEntry: Record "Item Ledger Entry")17-29
[IntegrationEvent] OnAfterGetValuationPeriod(var CalendarPeriod: Record Date; Item: Record Item)17-29
[IntegrationEvent] OnAfterIsAvgCostItem(var Item: Record Item; var AvgCostItem: Boolean)17-29
[IntegrationEvent] OnAfterMakeMultiLevelAdjmt(var Item: Record Item; IsOnlineAdjmt: Boolean; PostToGL: Boolean; var FilterItem: Record Item)17-29
[IntegrationEvent] OnBeforeCopyILEToILE(var Item: Record Item; ItemLedgEntry: Record "Item Ledger Entry")17-29
[IntegrationEvent] OnBeforeCopyItemToItem(var FromItem: Record Item; var ToItem: Record Item; var IsHandled: Boolean)17-29
[IntegrationEvent] OnBeforeIsUpdateCompletelyInvoiced(ItemLedgEntry: Record "Item Ledger Entry"; CompletelyInvoiced: Boolean; var Result: Boolean; var IsHandled: Boolean)17-29

All 104 events in 17-29

Public procedures 21 in 29

SetProperties(NewIsOnlineAdjmt: Boolean; NewPostToGL: Boolean)17-29
SetFilterItem(var NewItem: Record Item)17-29
MakeMultiLevelAdjmt()17-29
SetJobUpdateProperties(SkipJobUpdate: Boolean)17-29
CallInitializeAdjmt()new in 18
CallFinalizeAdjmt()new in 18

All 21 procedures

Changes 6 in 29

List17181920212223242526272829
Procedures13211
Events113108516425826
[IntegrationEvent] OnAfterGetVisitedEntries(var ExcludedValueEntry: Record "Value Entry"; OutbndValueEntry: Record "Value Entry"; var ItemLedgEntryInChain: Record "Item Ledger Entry")gone after 28
gone
[IntegrationEvent] OnBeforeUpdateJobItemCost(var Job: Record Job)gone after 28
gone
[IntegrationEvent] OnExcludeAvgCostOnValuationDateOnAfterSetItemLedgEntryInChainFilters(var ItemLedgerEntryInChain: Record "Item Ledger Entry" temporary)18 to 28
gone
[IntegrationEvent] OnIsOutputWithSelfConsumptionOnAfterSetTempItemLedgEntryFilter(var TempItemLedgerEntry: Record "Item Ledger Entry" temporary)18 to 28
gone
[IntegrationEvent] OnBeforeUpdateItemUnitCost(var TempAvgCostAdjmtEntryPoint: Record "Avg. Cost Adjmt. Entry Point" temporary; var IsHandled: Boolean; var Item: Record Item; var TempItemLedgerEntry: Record "Item Ledger Entry" temporary)20 to 28
gone
[IntegrationEvent] OnMakeSingleLevelAdjmtOnBeforePostAdjmtBuf(var Item: Record Item; var TempAvgCostAdjmtEntryPoint: Record "Avg. Cost Adjmt. Entry Point" temporary; var TempInventoryAdjustmentBuffer: Record "Inventory Adjustment Buffer" temporary; var TempRoundingResidualBuffer: Record "Rounding Residual Buffer" temporary; PostingDateForClosedPeriod: Date; Currency: Record Currency; SkipUpdateJobItemCost: Boolean; var TempJobToAdjustBuf: Record Job temporary; ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var IsHandled: Boolean)23 to 28
gone

All 115 changes in 17-29