---
title: "Codeunit 5896 Calc. Inventory Adjmt. - Order"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/5896-calc-inventory-adjmt-order/
type: codeunit
id: 5896
name: "Calc. Inventory Adjmt. - Order"
app: "Base Application"
namespace: Microsoft.Inventory.Costing
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/5896-calc-inventory-adjmt-order/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 5896 Calc. Inventory Adjmt. - Order

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/5896-calc-inventory-adjmt-order/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Inventory.Costing |
| Versions | 17-28 |
| Source file | Inventory/Costing/CalcInventoryAdjmtOrder.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| Calculate | (Record Inventory Adjmt. Entry (Order), var Record Inventory Adjustment Buffer) | - | public | 17-28 | - | - |
| CalcActualUsageCosts | (Record Inventory Adjmt. Entry (Order), Decimal, var Record Inventory Adjmt. Entry (Order)) | - | public | 17-28 | - | - |
| CalcOutputQty | (Record Inventory Adjmt. Entry (Order), Boolean) | Decimal | public | 17-28 | - | - |
| AdjustForRevNegCon | (var Record Inventory Adjmt. Entry (Order), Integer) | - | public | 26-28 | - | - |
| RunOnCalcActualCapacityCostsOnAfterSetFilters | (var Record Capacity Ledger Entry, var Record Inventory Adjmt. Entry (Order), var Boolean, Decimal) | - | internal | 27-28 | - | - |
| RunOnBeforeCalcShareOfCapCost | (var Record Inventory Adjmt. Entry (Order), var Decimal, var Boolean) | - | internal | 27-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeCalcActualCapacityCosts | (var Record Inventory Adjmt. Entry (Order), var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeCalcActualMaterialCosts | (var Record Inventory Adjmt. Entry (Order), var Boolean) | 17-28 | - | - |
| Integration event | OnCalcActualCapacityCostsOnAfterSetFilters | (var Record Capacity Ledger Entry, var Record Inventory Adjmt. Entry (Order)) | 17-21 | - | - |
| Integration event | OnCalcActualMaterialCostsOnAfterSetFilters | (var Record Item Ledger Entry, var Record Inventory Adjmt. Entry (Order)) | 17-21 | - | - |
| Integration event | OnCalculateOnAfterGetItem | (var Record Item, var Record Inventory Adjmt. Entry (Order)) | 17-28 | - | - |
| Integration event | OnBeforeAddCosts | (var Record Inventory Adjmt. Entry (Order), Integer, Boolean) | 19 | - | - |
| Integration event | OnCalcOutputQtyOnAfterSetFilters | (var Record Item Ledger Entry, var Record Inventory Adjmt. Entry (Order)) | 19-28 | - | - |
| Integration event | OnOutputItemLedgEntryExistOnAfterSetFilters | (var Record Item Ledger Entry, var Record Inventory Adjmt. Entry (Order)) | 19-28 | - | - |
| Integration event | OnAfterUpdateOutputAdjmtBuf | (Record Inventory Adjmt. Entry (Order), Record Item Ledger Entry, var Record Inventory Adjustment Buffer) | 20-28 | - | - |
| Integration event | OnBeforeAddCosts | (var Record Inventory Adjmt. Entry (Order), Integer, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeUpdateOutputAdjmtBuf | (Record Inventory Adjmt. Entry (Order), Record Item Ledger Entry, var Record Inventory Adjustment Buffer) | 22-28 | - | - |
| Integration event | OnCalcActualCapacityCostsOnAfterSetFilters | (var Record Capacity Ledger Entry, var Record Inventory Adjmt. Entry (Order), var Boolean, Decimal) | 22-28 | Pending 27.0 | Moved to codeunit MfgInventoryAdjmtOrder |
| Integration event | OnCalcActualMaterialCostsOnAfterSetFilters | (var Record Item Ledger Entry, var Record Inventory Adjmt. Entry (Order), var Query Calculate Actual Material Cost, var Boolean) | 22-28 | - | - |
| Integration event | OnCalcOutputEntryCostAdjmtsOnBeforeCalculateCostForGrossOutput | (var Record Inventory Adjmt. Entry (Order), Decimal, Decimal) | 22-28 | - | - |
| Integration event | OnBeforeCalcStandardCost | (var Record Inventory Adjmt. Entry (Order), Decimal, var Boolean) | 25-28 | - | - |
| Integration event | OnBeforeCalcShareOfCapCost | (var Record Inventory Adjmt. Entry (Order), var Decimal, var Boolean) | 25-28 | Pending 27.0 | Moved to codeunit MfgInventoryAdjmtEntryOrder |
| Integration event | OnAfterCalcExactCostReversingQty | (Record Item Ledger Entry, var Decimal) | 25-28 | - | - |
| Internal event | OnCalcActualCapacityCostsInternal | (var Record Inventory Adjmt. Entry (Order)) | 27-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
