---
id: object/codeunit/5894
type: object
title: Codeunit 5894 "Inventory Adjustment Handler"
summary: Codeunit 5894 "Inventory Adjustment Handler" in Base Application (Microsoft.Inventory.Costing). 6 public procedures, 4 events. Present since at least BC23, still in BC30, changed in BC26.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "26"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: f1545a5480cf16f213159d942591da78e8893053af9463a96ef38b754476c9d4
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Inventory/Costing/InventoryAdjustmentHandler.Codeunit.al
    title: src/Layers/W1/BaseApp/Inventory/Costing/InventoryAdjustmentHandler.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 5894
name: Inventory Adjustment Handler
namespace: Microsoft.Inventory.Costing
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "26"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 10
  events: 4
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 1
  calls: 1
  called_by: 24
  implements: 0
---

# Codeunit 5894 "Inventory Adjustment Handler"

> Codeunit 5894 "Inventory Adjustment Handler" in Base Application (Microsoft.Inventory.Costing). 6 public procedures, 4 events. Present since at least BC23, still in BC30, changed in BC26.

Base Application · Microsoft.Inventory.Costing · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Inventory/Costing/InventoryAdjustmentHandler.Codeunit.al) · facts from BC29

## Events published

- `OnBeforeMakeInventoryAdjustment(var InventoryAdjustment: Interface "Inventory Adjustment"; var IsHandled: Boolean)` (integration)
- `OnAfterMakeInventoryAdjustment(var CostAdjustmentParamsMgt: Codeunit "Cost Adjustment Params Mgt.")` (internal)
  - subscribers: [Codeunit 5842 "Cost Adjmt. Signals"](../codeunit/5842.md) RaiseSignalOnAfterMakeInventoryAdjustment
- `OnMakeInventoryAdjustmentOnBeforeSetParameters(var CostAdjustmentParameter: Record "Cost Adjustment Parameter")` (integration)
- `OnMakeInventoryAdjustmentOnAfterSetParameters(var CostAdjustmentParamsMgt: Codeunit "Cost Adjustment Params Mgt.")` (integration)

## Procedures

- `MakeInventoryAdjustment(var CostAdjustmentParamsMgt: Codeunit "Cost Adjustment Params Mgt.")`
- `MakeInventoryAdjustment(IsOnlineAdjmt: Boolean; PostToGL: Boolean)`
- `MakeAutomaticInventoryAdjustment(var ItemsToAdjust: List of [Code[20]])`
- `MakeAutomaticInventoryAdjustment(var ItemsToAdjust: List of [Code[20]]; var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)")`
- `SetJobUpdateProperties(SkipJobUpdate: Boolean)`
- `SetFilterItem(var NewItem: Record Item)`

## 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 5824 "Cost Adjustment Params Mgt."](../codeunit/5824.md) (3 calls: `MakeAutomaticInventoryAdjustment → SetItemsToAdjust`, `MakeAutomaticInventoryAdjustment → SetParameters`, `MakeInventoryAdjustment → GetParameters`)

## Called by

- [Codeunit 5813 "Undo Purchase Receipt Line"](../codeunit/5813.md) (2 calls: `MakeInventoryAdjustment → MakeAutomaticInventoryAdjustment`, `MakeInventoryAdjustment → SetJobUpdateProperties`)
- [Codeunit 5814 "Undo Return Shipment Line"](../codeunit/5814.md) (2 calls: `MakeInventoryAdjustment → MakeAutomaticInventoryAdjustment`, `MakeInventoryAdjustment → SetJobUpdateProperties`)
- [Codeunit 5815 "Undo Sales Shipment Line"](../codeunit/5815.md) (2 calls: `MakeInventoryAdjustment → MakeAutomaticInventoryAdjustment`, `MakeInventoryAdjustment → SetJobUpdateProperties`)
- [Codeunit 5816 "Undo Return Receipt Line"](../codeunit/5816.md) (2 calls: `MakeInventoryAdjustment → MakeAutomaticInventoryAdjustment`, `MakeInventoryAdjustment → SetJobUpdateProperties`)
- [Codeunit 5818 "Undo Service Shipment Line"](../codeunit/5818.md) (2 calls: `MakeInventoryAdjustment → MakeInventoryAdjustment`, `MakeInventoryAdjustment → SetJobUpdateProperties`)
- [Codeunit 5822 "Cost Adjustment Bucket Runner"](../codeunit/5822.md) (2 calls: `OnRun → MakeInventoryAdjustment`, `OnRun → SetFilterItem`)
- [Codeunit 5823 "Cost Adjustment Item Runner"](../codeunit/5823.md) (2 calls: `OnRun → MakeInventoryAdjustment`, `OnRun → SetFilterItem`)
- [Codeunit 9030 "Undo Transfer Shipment"](../codeunit/9030.md) (2 calls: `MakeInventoryAdjustment → MakeInventoryAdjustment`, `MakeInventoryAdjustment → SetJobUpdateProperties`)
- [Report 795 "Adjust Cost - Item Entries"](../report/795.md) (2 calls: `RunCostAdjustment → MakeInventoryAdjustment`, `RunCostAdjustment → SetFilterItem`)
- [Codeunit 1013 "Job Jnl.-Post Batch"](../codeunit/1013.md) (1 call: `Code → MakeInventoryAdjustment`)
- [Codeunit 22 "Item Jnl.-Post Line"](../codeunit/22.md) (1 call: `CostAdjust → MakeInventoryAdjustment`)
- [Codeunit 23 "Item Jnl.-Post Batch"](../codeunit/23.md) (1 call: `MakeInventoryAdjustment → MakeAutomaticInventoryAdjustment`)
- [Codeunit 5407 "Prod. Order Status Management"](../codeunit/5407.md) (1 call: `MakeMultiLevelAdjmt → MakeAutomaticInventoryAdjustment`)
- [Codeunit 5704 "TransferOrder-Post Shipment"](../codeunit/5704.md) (1 call: `MakeInventoryAdjustment → MakeAutomaticInventoryAdjustment`)
- [Codeunit 5705 "TransferOrder-Post Receipt"](../codeunit/5705.md) (1 call: `MakeInventoryAdjustment → MakeAutomaticInventoryAdjustment`)
- [Codeunit 5819 "Undo Service Consumption Line"](../codeunit/5819.md) (1 call: `MakeInventoryAdjustment → MakeInventoryAdjustment`)
- [Codeunit 5850 "Invt. Doc.-Post Receipt"](../codeunit/5850.md) (1 call: `OnRun → MakeAutomaticInventoryAdjustment`)
- [Codeunit 5851 "Invt. Doc.-Post Shipment"](../codeunit/5851.md) (1 call: `OnRun → MakeAutomaticInventoryAdjustment`)
- [Codeunit 5856 "TransferOrder-Post Transfer"](../codeunit/5856.md) (1 call: `MakeInventoryAdjustment → MakeAutomaticInventoryAdjustment`)
- [Codeunit 5884 "Phys. Invt. Order-Post"](../codeunit/5884.md) (1 call: `MakeInventoryAdjustment → MakeInventoryAdjustment`)
- [Codeunit 5988 "Serv-Documents Mgt."](../codeunit/5988.md) (1 call: `MakeInvtAdjustment → MakeInventoryAdjustment`)
- [Codeunit 80 "Sales-Post"](../codeunit/80.md) (1 call: `MakeInventoryAdjustment → MakeAutomaticInventoryAdjustment`)
- [Codeunit 90 "Purch.-Post"](../codeunit/90.md) (1 call: `MakeInventoryAdjustment → MakeAutomaticInventoryAdjustment`)
- [Codeunit 900 "Assembly-Post"](../codeunit/900.md) (1 call: `MakeInventoryAdjustment → MakeAutomaticInventoryAdjustment`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC26

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: "Inventory Adjustment Handler")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
