{"title":"Codeunit 5894 Inventory Adjustment Handler, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/points/","author":"JOP-AL","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/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":5894,"name":"Inventory Adjustment Handler","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/source/","path":"src/Layers/W1/BaseApp/Inventory/Costing/InventoryAdjustmentHandler.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"codeunit:5824":{"name":"Cost Adjustment Params Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/5824-cost-adjustment-params-mgt/"},"table:313":{"name":"Inventory Setup","url":"https://jonas-paprotka.de/ref/table/313-inventory-setup/"},"table:27":{"name":"Item","url":"https://jonas-paprotka.de/ref/table/27-item/"}},"procs":[{"name":"MakeInventoryAdjustment","line":17,"kind":"procedure","params":1,"steps":[[25,"event","OnBeforeMakeInventoryAdjustment",1],[35,"ext","codeunit",5824,"GetParameters",1],[43,"event","OnAfterMakeInventoryAdjustment",0]]},{"name":"MakeInventoryAdjustment","line":46,"kind":"procedure","params":2,"steps":[[55,"event","OnMakeInventoryAdjustmentOnBeforeSetParameters",0],[57,"ext","codeunit",5824,"SetParameters",1],[58,"event","OnMakeInventoryAdjustmentOnAfterSetParameters",0]]},{"name":"MakeAutomaticInventoryAdjustment","line":63,"kind":"procedure","params":1,"steps":[[69,"ext","table",313,"GetRecordOnce",0],[70,"ext","table",313,"AutomaticCostAdjmtRequired",0],[76,"ext","table",313,"UseLegacyPosting",0],[77,"ext","codeunit",5824,"SetItemsToAdjust",1],[78,"ext","codeunit",5824,"SetParameters",1],[79,"call","MakeInventoryAdjustment",1]]},{"name":"MakeAutomaticInventoryAdjustment","line":82,"kind":"procedure","params":2,"steps":[[90,"ext","table",313,"GetRecordOnce",0],[91,"ext","table",313,"AutomaticCostAdjmtRequired",0],[97,"ext","table",313,"UseLegacyPosting",0],[98,"ext","codeunit",5824,"SetItemsToAdjust",1],[99,"ext","codeunit",5824,"SetInventoryAdjmtEntryOrder",1],[101,"ext","codeunit",5824,"SetParameters",1],[102,"call","MakeInventoryAdjustment",1],[104,"ext","table",313,"UseLegacyPosting",0],[108,"ext","table",27,"UpdateCostIsAdjusted",0]]}]}