---
title: "Codeunit 5894 Inventory Adjustment Handler, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/points/
object: https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 5894 Inventory Adjustment Handler, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/points/

4 procedures and triggers with a step in src/Layers/W1/BaseApp/Inventory/Costing/InventoryAdjustmentHandler.Codeunit.al, in source order, read from the text, not from a run.

## MakeInventoryAdjustment

[Line 17](https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/#L17).

- [25](https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/#L25) raises `OnBeforeMakeInventoryAdjustment`, IsHandled
- [35](https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/#L35) calls [Codeunit 5824 Cost Adjustment Params Mgt.](https://jonas-paprotka.de/ref/codeunit/5824-cost-adjustment-params-mgt/) `GetParameters`
- [43](https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/#L43) raises `OnAfterMakeInventoryAdjustment`

## MakeInventoryAdjustment

[Line 46](https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/#L46).

- [55](https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/#L55) raises `OnMakeInventoryAdjustmentOnBeforeSetParameters`
- [57](https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/#L57) calls [Codeunit 5824 Cost Adjustment Params Mgt.](https://jonas-paprotka.de/ref/codeunit/5824-cost-adjustment-params-mgt/) `SetParameters`
- [58](https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/#L58) raises `OnMakeInventoryAdjustmentOnAfterSetParameters`

## MakeAutomaticInventoryAdjustment

[Line 63](https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/#L63).

- [69](https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/#L69) calls [Table 313 Inventory Setup](https://jonas-paprotka.de/ref/table/313-inventory-setup/) `GetRecordOnce`
- [70](https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/#L70) calls [Table 313 Inventory Setup](https://jonas-paprotka.de/ref/table/313-inventory-setup/) `AutomaticCostAdjmtRequired`
- [76](https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/#L76) calls [Table 313 Inventory Setup](https://jonas-paprotka.de/ref/table/313-inventory-setup/) `UseLegacyPosting`
- [77](https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/#L77) calls [Codeunit 5824 Cost Adjustment Params Mgt.](https://jonas-paprotka.de/ref/codeunit/5824-cost-adjustment-params-mgt/) `SetItemsToAdjust`
- [78](https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/#L78) calls [Codeunit 5824 Cost Adjustment Params Mgt.](https://jonas-paprotka.de/ref/codeunit/5824-cost-adjustment-params-mgt/) `SetParameters`
- [79](https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/#L79) calls `MakeInventoryAdjustment`

## MakeAutomaticInventoryAdjustment

[Line 82](https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/#L82).

- [90](https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/#L90) calls [Table 313 Inventory Setup](https://jonas-paprotka.de/ref/table/313-inventory-setup/) `GetRecordOnce`
- [91](https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/#L91) calls [Table 313 Inventory Setup](https://jonas-paprotka.de/ref/table/313-inventory-setup/) `AutomaticCostAdjmtRequired`
- [97](https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/#L97) calls [Table 313 Inventory Setup](https://jonas-paprotka.de/ref/table/313-inventory-setup/) `UseLegacyPosting`
- [98](https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/#L98) calls [Codeunit 5824 Cost Adjustment Params Mgt.](https://jonas-paprotka.de/ref/codeunit/5824-cost-adjustment-params-mgt/) `SetItemsToAdjust`
- [99](https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/#L99) calls [Codeunit 5824 Cost Adjustment Params Mgt.](https://jonas-paprotka.de/ref/codeunit/5824-cost-adjustment-params-mgt/) `SetInventoryAdjmtEntryOrder`
- [101](https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/#L101) calls [Codeunit 5824 Cost Adjustment Params Mgt.](https://jonas-paprotka.de/ref/codeunit/5824-cost-adjustment-params-mgt/) `SetParameters`
- [102](https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/#L102) calls `MakeInventoryAdjustment`
- [104](https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/#L104) calls [Table 313 Inventory Setup](https://jonas-paprotka.de/ref/table/313-inventory-setup/) `UseLegacyPosting`
- [108](https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/#L108) calls [Table 27 Item](https://jonas-paprotka.de/ref/table/27-item/) `UpdateCostIsAdjusted`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
