---
id: object/codeunit/1327
type: object
title: Codeunit 1327 "Adjust Item Inventory"
summary: Codeunit 1327 "Adjust Item Inventory" in Base Application (Microsoft.Inventory.Item). 7 public procedures, 2 events. Present since at least BC23, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: null
  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: 697f74d598a09a93f52cc220033f51b463b41e8f67fe68532e0fe694ded80b0e
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Inventory/Item/AdjustItemInventory.Codeunit.al
    title: src/Layers/W1/BaseApp/Inventory/Item/AdjustItemInventory.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: 1327
name: Adjust Item Inventory
namespace: Microsoft.Inventory.Item
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 12
  events: 2
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 2
  called_by: 8
  implements: 0
---

# Codeunit 1327 "Adjust Item Inventory"

> Codeunit 1327 "Adjust Item Inventory" in Base Application (Microsoft.Inventory.Item). 7 public procedures, 2 events. Present since at least BC23, still in BC30.

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

## Events published

- `OnPostMultipleAdjustmentsToItemLedgerOnAfterItemSetFilters(var TempItemJournalLine: Record "Item Journal Line" temporary; var Item: Record Item)` (integration)
- `OnPostMultipleAdjustmentsToItemLedgerOnBeforeInsertItemJnlLine(var TempItemJournalLine: Record "Item Journal Line" temporary; var ItemJournalLine: Record "Item Journal Line")` (integration)

## Procedures

- `PostAdjustmentToItemLedger(Item: Record Item; NewInventory: Decimal): Text`
- `PostMultipleAdjustmentsToItemLedger(var TempItemJournalLine: Record "Item Journal Line" temporary): Text`
- `CreateItemJnlLine(var ItemJnlLine: Record "Item Journal Line"; var Item: Record Item; ItemTemplate: Code[10]; ItemBatch: Code[10]; NewInventory: Decimal)`
- `PostItemJnlLines(var ItemJournalLine: Record "Item Journal Line"): Text`
- `SelectItemTemplateForAdjustment(): Code[10]`
- `FindOrCreateItemBatchWithCustomNameDesc(TemplateName: Code[10]; BatchName: Code[10]; BatchDescription: Text[50]): Code[10]`
- `GetInventoryAdjustmentAllowed(): Boolean`

Plus 3 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 23 "Item Jnl.-Post Batch"](../codeunit/23.md) (1 call: `PostItemJnlLines → (object)`)
- [Codeunit 240 "ItemJnlManagement"](../codeunit/240.md) (1 call: `SelectItemTemplateForAdjustment → TemplateSelection`)

## Called by

- [Codeunit 47026 "SL Item Migrator"](../codeunit/47026.md) (3 calls: `CreateItemJnlLine → SelectItemTemplateForAdjustment`, `CreateItemJnlLineItemCost → SelectItemTemplateForAdjustment`, `CreateItemJnlLineLotSerMst → SelectItemTemplateForAdjustment`)
- [Page 30 "Item Card"](../page/30.md) (2 calls: `EnableControls → GetInventoryAdjustmentAllowed`, `OnOpenPageFunc → GetInventoryAdjustmentAllowed`)
- [Codeunit 1811 "Excel Post Processor"](../codeunit/1811.md) (1 call: `PostProcessItem → PostAdjustmentToItemLedger`)
- [Codeunit 1920 "MigrationQB Item Migrator"](../codeunit/1920.md) (1 call: `MigrateInventoryTransactions → PostAdjustmentToItemLedger`)
- [Codeunit 40108 "GP PO Migrator"](../codeunit/40108.md) (1 call: `CreateNegativeAdjustment → SelectItemTemplateForAdjustment`)
- [Codeunit 4019 "GP Item Migrator"](../codeunit/4019.md) (1 call: `CreateItemJnlLine → SelectItemTemplateForAdjustment`)
- [Page 1327 "Adjust Inventory"](../page/1327.md) (1 call: `OnQueryClosePage → PostMultipleAdjustmentsToItemLedger`)
- [Page 31 "Item List"](../page/31.md) (1 call: `OnOpenPage → GetInventoryAdjustmentAllowed`)

## Across versions

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

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