Codeunit 5896 "Calc. Inventory Adjmt. - Order"
Base Application · Microsoft.Inventory.Costing
Across versions
- BC23-24present
- BC253 events added
- BC261 procedures changed, 1 events added
- BC272 procedures added, 2 events changed
- BC28-29unchanged
- BC302 procedures removed, 2 events removed
Neighbourhood 7 connected objects and pages
Base Application · Microsoft.Inventory.Costing · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Permissions | TableData Microsoft.Manufacturing.Capacity.“Capacity Ledger Entry” = r, TableData “Inventory Adjmt. Entry (Order)” = rimd |
Events published
OnAfterUpdateOutputAdjmtBuf(InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; ItemLedgerEntry: Record "Item Ledger Entry"; var InventoryAdjustmentBuffer: Record "Inventory Adjustment Buffer")(integration)OnBeforeUpdateOutputAdjmtBuf(InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; ItemLedgerEntry: Record "Item Ledger Entry"; var InventoryAdjustmentBuffer: Record "Inventory Adjustment Buffer")(integration)OnBeforeCalcActualCapacityCosts(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var IsHandled: Boolean)(integration)OnBeforeAddCosts(var InvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; ItemLedgerEntryNo: Integer; var isHandled: Boolean)(integration)OnBeforeCalcActualMaterialCosts(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var IsHandled: Boolean)(integration)OnCalcActualCapacityCostsOnAfterSetFilters(var CapLedgEntry: Record Microsoft.Manufacturing.Capacity."Capacity Ledger Entry"; var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var IsHandled: Boolean; ShareOfTotalCapCost: Decimal)+ BC26 − BC26 Δ BC27 − BC30 (integration, obsolete 27.0)OnCalcActualMaterialCostsOnAfterSetFilters(var ItemLedgEntry: Record "Item Ledger Entry"; var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var CalculateActualMaterialCost: Query "Calculate Actual Material Cost"; var IsHandled: Boolean)(integration)OnCalcOutputQtyOnAfterSetFilters(var ItemLedgEntry: Record "Item Ledger Entry"; var InvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)")(integration)OnCalculateOnAfterGetItem(var Item: Record Item; var SourceInvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)")(integration)OnOutputItemLedgEntryExistOnAfterSetFilters(var FromItemLedgEntry: Record "Item Ledger Entry"; var SourceInvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)")(integration)OnCalcOutputEntryCostAdjmtsOnBeforeCalculateCostForGrossOutput(var NewActInvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; RemOutputQty: Decimal; OutputQty: Decimal)(integration)OnBeforeCalcStandardCost(var InvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; OutputQty: Decimal; var IsHandled: Boolean)+ BC25 (integration)OnAfterCalcExactCostReversingQty(ItemLedgEntry: Record "Item Ledger Entry"; var Qty: Decimal)+ BC25 (integration)OnCalcActualCapacityCostsInternal(var InvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)")+ BC27 (internal)- subscribers: Codeunit 99000776 “Mfg. InventoryAdjmtEntryOrder” OnCalcActualCapacityCostsInternal
Procedures
Calculate(SourceInvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var InvtAdjmtBuf: Record "Inventory Adjustment Buffer")CalcActualUsageCosts(SourceInvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; OutputQty: Decimal; var InvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)")AdjustForRevNegCon(var InvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; ItemLedgEntryNo: Integer)Δ BC26CalcOutputQty(InvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; OnlyInbounds: Boolean): DecimalRunOnCalcActualCapacityCostsOnAfterSetFilters(var CapLedgEntry: Record Microsoft.Manufacturing.Capacity."Capacity Ledger Entry"; var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var IsHandled: Boolean; ShareOfTotalCapCost: Decimal)+ BC27 − BC30 (internal)
Plus 11 local procedures.
Triggers
OnRun
Calls
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 5836 “Cost Calculation Management” (3 calls:
CalcActualMaterialCosts → CanIncNonInvCostIntoProductionItem,CalcActualOutputCosts → CanIncNonInvCostIntoProductionItem,UpdateOutputAdjmtBuf → CanIncNonInvCostIntoProductionItem)
Called by
- Codeunit 5895 “Inventory Adjustment” (2 calls:
MakeAssemblyAdjmt → Calculate,MakeWIPAdjmt → Calculate) - Codeunit 99000758 “Mfg. Cost Calculation Mgt.” (2 calls:
CalcProdOrderLineActCost → CalcActualUsageCosts,CalcProdOrderLineActCost → CalcOutputQty) - Report 5848 “Cost Shares Breakdown” (2 calls:
UpdateCostShareBufFromInvAdjmtEntryOrder → CalcActualUsageCosts,UpdateCostShareBufFromInvAdjmtEntryOrder → CalcOutputQty) - Table 900 “Assembly Header” (1 call:
CalcActualCosts → CalcActualUsageCosts) - Table 910 “Posted Assembly Header” (1 call:
CalcActualCosts → CalcActualUsageCosts)
Recent changes
- 2026-10-02 #12066 Bugs/remove asm inv mfg clean27 tags for wave2 2026 (main, BC30, obsoletion)
- 2026-07-24 #9398 [Main]Incorrect Cost Amount (Actual) in Value Entries after posting Assembly Process and calulating the assembly standard costsInitial commit (main, BC30, fix)
Deprecations
- procedure RunOnBeforeCalcShareOfCapCost: guarded (#if not CLEAN27)
- procedure RunOnCalcActualCapacityCostsOnAfterSetFilters: guarded (#if not CLEAN27)
- procedure OnBeforeCalcShareOfCapCost: Pending 27.0 (#if not CLEAN27), “Moved to codeunit MfgInventoryAdjmtEntryOrder”
- procedure OnCalcActualCapacityCostsOnAfterSetFilters: Pending 27.0 (#if not CLEAN27), “Moved to codeunit MfgInventoryAdjmtOrder”
Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Calc. Inventory Adjmt. - Order"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.