{"title":"Report 5880 Calc. Phys. Invt. Order Lines, extension points 29","url":"https://jonas-paprotka.de/ref/report/5880-calc-phys-invt-order-lines/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":"report","id":5880,"name":"Calc. Phys. Invt. Order Lines","app":"Base Application","url":"https://jonas-paprotka.de/ref/report/5880-calc-phys-invt-order-lines/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/report/5880-calc-phys-invt-order-lines/source/","path":"src/Layers/W1/BaseApp/Inventory/Counting/Document/CalcPhysInvtOrderLines.Report.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:5889":{"name":"Phys. Invt. Tracking Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/5889-phys-invt-tracking-mgt/"},"table:5876":{"name":"Phys. Invt. Order Line","url":"https://jonas-paprotka.de/ref/table/5876-phys-invt-order-line/"},"table:5875":{"name":"Phys. Invt. Order Header","url":"https://jonas-paprotka.de/ref/table/5875-phys-invt-order-header/"},"table:14":{"name":"Location","url":"https://jonas-paprotka.de/ref/table/14-location/"}},"procs":[{"name":"Item.OnAfterGetRecord","line":26,"kind":"trigger","steps":[[36,"event","OnAfterGetRecordItemOnAfterCalcShouldCalcItemPhysInvtOrderLines",0],[38,"call","CalcItemPhysInvtOrderLines",0]]},{"name":"Item.OnPostDataItem","line":43,"kind":"trigger","steps":[[45,"event","OnAfterCreatePhysInvtOrderLines",0]]},{"name":"Item.OnPreDataItem","line":54,"kind":"trigger","steps":[[59,"event","OnBeforeOnPreDataItemItem",0]]},{"name":"OnOpenPage","line":132,"kind":"trigger","steps":[[134,"event","OnAfterOpenPage",0]]},{"name":"SetPhysInvtOrderHeader","line":169,"kind":"procedure","params":1,"steps":[[173,"event","OnAfterSetPhysInvtOrderHeader",0]]},{"name":"CalcItemPhysInvtOrderLines","line":199,"kind":"procedure","access":"local","params":0,"steps":[[208,"event","OnBeforeCalcItemPhysInvtOrderLines",1],[212,"call","SetItemLedgEntryFilters",0],[215,"call","IsNewItemLedgEntryGroup",0],[227,"ext","codeunit",5889,"LocationIsBinMandatory",1],[229,"call","SetWhseEntryFilters",0],[232,"call","IsNewWhseEntryGroup",0],[237,"event","OnBeforeCreateNewPhysInvtOrderLineForWhseEntry",1],[241,"ext","table",5876,"PrepareLineArgs",2],[243,"ext","table",5875,"GetSamePhysInvtOrderLine",3],[248,"call","CreateNewPhysInvtOrderLine",0],[253,"ext","table",5876,"PrepareLineArgs",2],[254,"ext","table",5875,"GetSamePhysInvtOrderLine",3],[260,"call","CreateNewPhysInvtOrderLine",0],[265,"call","CalcItemPhysInvtOrderLinesForItemWithNoTransactions",0]]},{"name":"SetItemLedgEntryFilters","line":268,"kind":"procedure","access":"local","params":0,"steps":[[280,"event","OnAfterSetItemLedgEntryFilters",0]]},{"name":"IsNewItemLedgEntryGroup","line":283,"kind":"procedure","access":"local","params":0,"steps":[[289,"event","OnAfterIsNewItemLedgEntryGroup",0]]},{"name":"SetWhseEntryFilters","line":292,"kind":"procedure","access":"local","params":0,"steps":[[301,"event","OnAfterSetWhseEntryFilters",0]]},{"name":"IsNewWhseEntryGroup","line":304,"kind":"procedure","access":"local","params":0,"steps":[[307,"event","OnAfterIsNewWhseEntryGroup",0]]},{"name":"CreatePhysInvtOrderLineForItemsWithoutTransactions","line":310,"kind":"procedure","access":"local","params":3,"steps":[[320,"event","OnCreatePhysInvtOrderLineForItemsWithoutTransactions",0],[322,"ext","table",5876,"PrepareLineArgs",2],[323,"ext","table",5875,"GetSamePhysInvtOrderLine",3],[324,"event","OnCreatePhysInvtOrderLineForItemsWithoutTransactionsBeforeCreateNewPhysInvtOrderLine",0],[325,"call","CreateNewPhysInvtOrderLine",0]]},{"name":"CreateNewPhysInvtOrderLine","line":329,"kind":"procedure","params":0,"steps":[[334,"ext","table",5876,"PrepareLineArgs",2],[335,"ext","table",5876,"PrepareLine",5],[337,"ext","table",5876,"CalcQtyAndLastItemLedgExpected",2],[339,"event","OnCreateNewPhysInvtOrderLineOnAfterCalcQtyAndLastItemLedgExpected",0],[341,"write",5876,"Insert",1],[342,"ext","table",5876,"CreateDimFromDefaultDim",0],[344,"ext","table",5876,"CalcQtyAndTrackLinesExpected",0],[345,"event","OnBeforePhysInvtOrderLineModify",0],[346,"write",5876,"Modify"]]},{"name":"CalcItemPhysInvtOrderLinesForItemWithNoTransactions","line":352,"kind":"procedure","access":"local","params":0,"steps":[[366,"call","SetItemLedgEntryFilters",0],[367,"event","OnBeforeCreateNewPhysInvtOrderLineForItemWithNoTransactionAfterSetItemVariantFilters",0],[370,"call","CalcItemPhysInvtOrderLinesForItemWithNoTransactionsOnLocation",2],[373,"call","ShouldCalcForBlankLocation",0],[375,"call","CalcItemPhysInvtOrderLinesForItemWithNoTransactionsOnLocation",2],[377,"call","SetItemLedgEntryFilters",0]]},{"name":"CalcItemPhysInvtOrderLinesForItemWithNoTransactionsOnLocation","line":380,"kind":"procedure","access":"local","params":2,"steps":[[384,"ext","codeunit",5889,"LocationIsBinMandatory",1],[394,"call","CreatePhysInvtOrderLineForItemsWithoutTransactions",3],[399,"event","OnBeforeCreateNewPhysInvtOrderLineForItemWithNoTransaction",0],[402,"call","CreatePhysInvtOrderLineForItemsWithoutTransactions",3]]},{"name":"ShouldCalcForBlankLocation","line":408,"kind":"procedure","access":"local","params":0,"steps":[[422,"write",14,"DeleteAll"],[423,"write",14,"Insert"]]}]}