Codeunit 5896 Calc. Inventory Adjmt. - Order

Base Application, Microsoft.Inventory.Costing

Source AL, 523 lines

src/Layers/W1/BaseApp/Inventory/Costing/CalcInventoryAdjmtOrder.Codeunit.allines 10 to 25 of 523, Copyright (c) Microsoft Corporation. MIT

codeunit 5896 "Calc. Inventory Adjmt. - Order"{    Permissions = TableData Microsoft.Manufacturing.Capacity."Capacity Ledger Entry" = r,                  TableData "Inventory Adjmt. Entry (Order)" = rimd;    trigger OnRun()    begin    end;    var        Item: Record Item;        CostCalcMgt: Codeunit "Cost Calculation Management";    procedure Calculate(SourceInvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var InvtAdjmtBuf: Record "Inventory Adjustment Buffer")    var        ActInvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)";

All 523 lines

Events 15 in 29

[IntegrationEvent] OnBeforeCalcActualCapacityCosts(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var IsHandled: Boolean)17-29
[IntegrationEvent] OnBeforeCalcActualMaterialCosts(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var IsHandled: Boolean)17-29
[IntegrationEvent] OnCalculateOnAfterGetItem(var Item: Record Item; var SourceInvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)")17-29
[IntegrationEvent] OnCalcOutputQtyOnAfterSetFilters(var ItemLedgEntry: Record "Item Ledger Entry"; var InvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)")new in 19
[IntegrationEvent] OnOutputItemLedgEntryExistOnAfterSetFilters(var FromItemLedgEntry: Record "Item Ledger Entry"; var SourceInvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)")new in 19
[IntegrationEvent] OnAfterUpdateOutputAdjmtBuf(InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; ItemLedgerEntry: Record "Item Ledger Entry"; var InventoryAdjustmentBuffer: Record "Inventory Adjustment Buffer")new in 20
[IntegrationEvent] OnBeforeAddCosts(var InvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; ItemLedgerEntryNo: Integer; var isHandled: Boolean)new in 20

All 18 events in 17-29

Public procedures 4 in 29

Calculate(SourceInvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var InvtAdjmtBuf: Record "Inventory Adjustment Buffer")17-29
CalcActualUsageCosts(SourceInvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; OutputQty: Decimal; var InvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)")17-29
CalcOutputQty(InvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; OnlyInbounds: Boolean): Decimal17-29
AdjustForRevNegCon(var InvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; ItemLedgEntryNo: Integer)new in 26

All 6 procedures in 17-29

Changes 5 in 27

List17181920212223242526272829
Procedures12
Events33633
internal RunOnCalcActualCapacityCostsOnAfterSetFilters(var CapLedgEntry: Record "Capacity Ledger Entry"; var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var IsHandled: Boolean; ShareOfTotalCapCost: Decimal)new in 27
added
internal RunOnBeforeCalcShareOfCapCost(var InvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var ShareOfCapCost: Decimal; var IsHandled: Boolean)new in 27
added
[IntegrationEvent] OnCalcActualCapacityCostsOnAfterSetFilters(var CapLedgEntry: Record "Capacity Ledger Entry"; var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var IsHandled: Boolean; ShareOfTotalCapCost: Decimal)new in 22
marked Pending, tag 27.0: Moved to codeunit MfgInventoryAdjmtOrder
[IntegrationEvent] OnBeforeCalcShareOfCapCost(var InvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var ShareOfCapCost: Decimal; var IsHandled: Boolean)new in 25
marked Pending, tag 27.0: Moved to codeunit MfgInventoryAdjmtEntryOrder
[InternalEvent] OnCalcActualCapacityCostsInternal(var InvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)")new in 27
added

All 21 changes in 17-29