{"title":"Codeunit 1327 Adjust Item Inventory, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/1327-adjust-item-inventory/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":1327,"name":"Adjust Item Inventory","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/1327-adjust-item-inventory/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/1327-adjust-item-inventory/source/","path":"src/Layers/W1/BaseApp/Inventory/Item/AdjustItemInventory.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":{"table:83":{"name":"Item Journal Line","url":"https://jonas-paprotka.de/ref/table/83-item-journal-line/"},"codeunit:23":{"name":"Item Jnl.-Post Batch","url":"https://jonas-paprotka.de/ref/codeunit/23-item-jnl-post-batch/"},"codeunit:240":{"name":"ItemJnlManagement","url":"https://jonas-paprotka.de/ref/codeunit/240-itemjnlmanagement/"},"table:233":{"name":"Item Journal Batch","url":"https://jonas-paprotka.de/ref/table/233-item-journal-batch/"}},"procs":[{"name":"PostAdjustmentToItemLedger","line":22,"kind":"procedure","params":2,"steps":[[31,"call","SelectItemTemplateForAdjustment",0],[32,"call","CreateItemJnlLine",5],[32,"call","CreateItemBatch",1],[33,"write",83,"Insert",1],[35,"call","PostItemJnlLines",1]]},{"name":"PostMultipleAdjustmentsToItemLedger","line":38,"kind":"procedure","params":1,"steps":[[48,"call","SelectItemTemplateForAdjustment",0],[49,"call","CreateItemBatch",1],[54,"event","OnPostMultipleAdjustmentsToItemLedgerOnAfterItemSetFilters",0],[57,"call","CreateItemJnlLine",5],[58,"validate",83,"Line No."],[59,"validate",83,"Location Code"],[60,"event","OnPostMultipleAdjustmentsToItemLedgerOnBeforeInsertItemJnlLine",0],[61,"write",83,"Insert",1],[68,"call","DeleteItemBatch",2],[72,"call","PostItemJnlLines",1]]},{"name":"CreateItemJnlLine","line":75,"kind":"procedure","params":5,"steps":[[78,"validate",83,"Journal Template Name"],[79,"validate",83,"Journal Batch Name"],[80,"validate",83,"Posting Date"],[84,"validate",83,"Entry Type"],[86,"validate",83,"Entry Type"],[88,"validate",83,"Item No."],[89,"validate",83,"Description"],[90,"validate",83,"Quantity"]]},{"name":"PostItemJnlLines","line":93,"kind":"procedure","params":1,"steps":[[99,"run","codeunit",23],[101,"call","DeleteItemBatch",2]]},{"name":"SelectItemTemplateForAdjustment","line":109,"kind":"procedure","params":0,"steps":[[116,"ext","codeunit",240,"TemplateSelection",5]]},{"name":"CreateItemBatch","line":127,"kind":"procedure","access":"local","params":1,"steps":[[133,"call","CreateBatchName",0],[135,"write",233,"Insert"]]},{"name":"FindOrCreateItemBatchWithCustomNameDesc","line":140,"kind":"procedure","params":3,"steps":[[150,"ext","table",233,"SetupNewBatch",0],[151,"write",233,"Insert"]]},{"name":"DeleteItemBatch","line":164,"kind":"procedure","access":"local","params":2,"steps":[[169,"write",233,"Delete",1]]}]}