---
id: object/codeunit/20446
type: object
title: Codeunit 20446 "Qlty. Disp. Neg. Adjust Inv."
summary: Codeunit 20446 "Qlty. Disp. Neg. Adjust Inv." in Quality Management (Microsoft.QualityManagement.Dispositions.InventoryAdjustment). 2 public procedures, 4 events. Introduced in BC29, still in BC30, changed in BC30.
tier: official
language: en
tags:
  - codeunit
  - quality management
versions:
  introduced: "29"
  last_changed: "30"
  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: 24194defe3d456c5f5106502aedc8b0356d305675629385abaafcf54a0221b0a
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Quality%20Management/app/src/Dispositions/InventoryAdjustment/QltyDispNegAdjustInv.Codeunit.al
    title: src/Apps/W1/Quality Management/app/src/Dispositions/InventoryAdjustment/QltyDispNegAdjustInv.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/10270
object_type: codeunit
object_id: 20446
name: Qlty. Disp. Neg. Adjust Inv.
namespace: Microsoft.QualityManagement.Dispositions.InventoryAdjustment
app: Quality Management
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in:
  - "30"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 8
  events: 4
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 2
  implements: 1
---

# Codeunit 20446 "Qlty. Disp. Neg. Adjust Inv."

> Codeunit 20446 "Qlty. Disp. Neg. Adjust Inv." in Quality Management (Microsoft.QualityManagement.Dispositions.InventoryAdjustment). 2 public procedures, 4 events. Introduced in BC29, still in BC30, changed in BC30.

Quality Management · Microsoft.QualityManagement.Dispositions.InventoryAdjustment · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Quality%20Management/app/src/Dispositions/InventoryAdjustment/QltyDispNegAdjustInv.Codeunit.al) · facts from BC29

## Events published

- `OnBeforeCreateNegativeItemAdjustmentLine(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var TempQuantityToActQltyDispositionBuffer: Record "Qlty. Disposition Buffer" temporary; var AdjustmentBatchName: Code[10]; var ItemJournalLine: Record "Item Journal Line"; var ReservationEntry: Record "Reservation Entry"; var IsHandled: Boolean)` (integration): Occurs before a negative item adjustment line is created and can replace the default creation.
- `OnBeforeCreateNegativeWarehouseAdjustmentLine(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var TempQuantityToActQltyDispositionBuffer: Record "Qlty. Disposition Buffer" temporary; var WarehouseNegativeAdjustmentBatch: Code[10]; var WarehouseJournalLine: Record "Warehouse Journal Line"; var WhseItemTrackingLine: Record "Whse. Item Tracking Line"; var IsHandled: Boolean)` (integration): Occurs before a negative warehouse adjustment line is created and can replace the default creation.
- `OnBeforeProcessDisposition(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var TempInstructionQltyDispositionBuffer: Record "Qlty. Disposition Buffer" temporary; var Changed: Boolean; var IsHandled: Boolean)` (integration): Occurs before the disposition has taken place, allowing the opportunity to extend or replace the functionality.
- `OnAfterProcessDisposition(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var TempInstructionQltyDispositionBuffer: Record "Qlty. Disposition Buffer" temporary; var Changed: Boolean)` (integration): Occurs after the disposition has taken place.

## Procedures

- `PerformDisposition(var QltyInspectionHeader: Record "Qlty. Inspection Header"; OptionalSpecificQuantity: Decimal; QltyQuantityBehavior: Enum "Qlty. Quantity Behavior"; OptionalSourceLocationFilter: Text; OptionalSourceBinFilter: Text; PostingBehavior: Enum "Qlty. Item Adj. Post Behavior"; Reason: Code[10]): Boolean` (internal): Creates a negative adjustment using the information from a given Quality Inspection.
- `PerformDisposition(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var TempInstructionQltyDispositionBuffer: Record "Qlty. Disposition Buffer" temporary): Boolean` (internal): Creates a negative adjustment using the information from a given Quality Inspection.

Plus 2 local procedures.

## 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 20454 "Qlty. Item Journal Management"](../codeunit/20454.md) (2 calls: `CreateNegativeItemAdjustmentLine → CreateItemJournalLine`, `CreateNegativeWarehouseAdjustmentLine → CreateWarehouseJournalLine`)

## Called by

- [Codeunit 20424 "Qlty. Workflow Response"](../codeunit/20424.md) (1 call: `HandleOnExecuteWorkflowResponse → PerformDisposition`)
- [Page 20414 "Qlty. Inspections API"](../page/20414.md) (1 call: `CreateNegativeAdjustment → PerformDisposition`)

## Implements

- [Interface "Qlty. Disposition"](../interface/qlty-disposition.md)

## Recent changes

- 2026-08-20 [#10270 [Quality Management] Repair and improve XML documentation of procedures](../../changes/bcapps/10270.md) (main, BC30, refactor)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: BC30

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: "Qlty. Disp. Neg. Adjust Inv.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
