{"title":"Codeunit 5880 Phys. Invt. Order-Finish, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5880-phys-invt-order-finish/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":5880,"name":"Phys. Invt. Order-Finish","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5880-phys-invt-order-finish/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5880-phys-invt-order-finish/source/","path":"src/Layers/W1/BaseApp/Inventory/Counting/Document/PhysInvtOrderFinish.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:5876":{"name":"Phys. Invt. Order Line","url":"https://jonas-paprotka.de/ref/table/5876-phys-invt-order-line/"},"table:6025":{"name":"Invt. Order Tracking","url":"https://jonas-paprotka.de/ref/table/6025-invt-order-tracking/"},"table:5875":{"name":"Phys. Invt. Order Header","url":"https://jonas-paprotka.de/ref/table/5875-phys-invt-order-header/"},"table:337":{"name":"Reservation Entry","url":"https://jonas-paprotka.de/ref/table/337-reservation-entry/"},"codeunit:5889":{"name":"Phys. Invt. Tracking Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/5889-phys-invt-tracking-mgt/"},"table:6565":{"name":"Item Tracking Setup","url":"https://jonas-paprotka.de/ref/table/6565-item-tracking-setup/"}},"procs":[{"name":"OnRun","line":17,"kind":"trigger","steps":[[19,"event","OnBeforeOnRun",0],[21,"call","Code",0],[24,"event","OnAfterOnRun",0]]},{"name":"Code","line":45,"kind":"procedure","params":0,"steps":[[50,"event","OnBeforeCode",0],[75,"event","OnCodeOnAfterSetFilters",0],[82,"ext","table",5876,"EmptyLine",0],[83,"call","CheckOrderLine",3],[96,"event","OnCodeOnAfterSetEntryTypePhysInvtOrderLine",0],[99,"call","IsBinMandatoryNoWhseTracking",2],[104,"write",6025,"DeleteAll"],[105,"call","CreateOrderTrackingBufferLines",2],[106,"call","CreateReservationEntries",4],[114,"event","OnCodeOnBeforePhysInvtOrderLineCalcCosts",1],[116,"ext","table",5876,"CalcCosts",0],[118,"event","OnBeforePhysInvtOrderLineModify",0],[119,"write",5876,"Modify"],[129,"event","OnCodeOnAfterSetFilters",0],[132,"call","IsNewPhysInvtOrderLineGroup",0],[136,"call","IsBinMandatoryNoWhseTracking",2],[138,"write",6025,"DeleteAll"],[139,"call","UpdateBufferFromItemLedgerEntries",1],[141,"call","SetPhysInvtRecordLineFilters",0],[154,"call","UpdateBufferRecordedQty",3],[155,"event","OnCodeOnAfterUpdateFromPhysInvtRecordLine2",0],[165,"event","OnCodeOnBeforeModifyInvtOrderTracking",0],[166,"write",6025,"Modify"],[174,"write",5876,"Modify"],[177,"event","OnCodeOnBeforeCreateReservEntries",1],[179,"call","CreateReservationEntries",4],[184,"event","OnCodeOnBeforePhysInvtOrderLine2CalcCosts",1],[186,"ext","table",5876,"CalcCosts",0],[187,"write",5876,"Modify"],[193,"event","OnCodeOnBeforeSetStatusToFinished",0],[195,"write",5875,"Modify"]]},{"name":"CheckOrderLine","line":198,"kind":"procedure","access":"local","params":3,"steps":[[204,"event","OnBeforeCheckOrderLine",1],[208,"ext","table",5876,"CheckLine",0],[219,"event","OnBeforeGetSamePhysInvtOrderLine",1],[221,"ext","table",5875,"GetSamePhysInvtOrderLine",3]]},{"name":"CreateOrderTrackingBufferLines","line":227,"kind":"procedure","params":2,"steps":[[242,"call","UpdateBufferRecordedQty",3],[243,"event","OnCreateOrderTrackingBufferLinesFromPhysInvtRecordLine",0],[254,"call","UpdateBufferExpectedQty",3],[255,"event","OnCreateOrderTrackingBufferLinesFromExpInvtOrderTracking",0],[265,"event","OnCreateOrderTrackingBufferLinesOnBeforeModifyTempInvtOrderTrackingBuffer",0],[266,"write",6025,"Modify"]]},{"name":"CreateReservationEntries","line":270,"kind":"procedure","params":4,"steps":[[281,"call","CalculateQtyToTransfer",2],[286,"validate",337,"Item No."],[287,"validate",337,"Variant Code"],[288,"validate",337,"Location Code"],[289,"validate",337,"Serial No."],[290,"validate",337,"Lot No."],[291,"validate",337,"Package No."],[292,"validate",337,"Expiration Date"],[293,"validate",337,"Source Type"],[294,"validate",337,"Source ID"],[295,"validate",337,"Source Ref. No."],[296,"validate",337,"Quantity"],[303,"validate",337,"Creation Date"],[311,"write",337,"Insert"],[312,"event","OnCreateReservEntriesOnBeforeInsert2",0],[315,"write",337,"Modify"],[319,"write",6025,"Modify"],[320,"event","OnCreateReservEntriesOnAfterTempPhysInvtTrackingBufferModify",0]]},{"name":"CalculateQtyToTransfer","line":324,"kind":"procedure","access":"local","params":2,"steps":[[339,"event","OnAfterCalculateQtyToTransfer",0]]},{"name":"IsBinMandatoryNoWhseTracking","line":342,"kind":"procedure","access":"local","params":2,"steps":[[344,"ext","codeunit",5889,"LocationIsBinMandatory",1],[344,"ext","codeunit",5889,"GetTrackingNosFromWhse",1]]},{"name":"UpdateBufferFromItemLedgerEntries","line":347,"kind":"procedure","access":"local","params":1,"steps":[[360,"ext","table",6565,"CopyTrackingFromitemLedgerEntry",1],[361,"call","UpdateBufferExpectedQty",3],[362,"event","OnUpdateBufferFromItemLedgerEntriesOnAfterUpdateExpectedQty2",0]]},{"name":"UpdateBufferRecordedQty","line":366,"kind":"procedure","access":"local","params":3,"steps":[[375,"write",6025,"Insert"],[378,"write",6025,"Modify"]]},{"name":"UpdateBufferExpectedQty","line":382,"kind":"procedure","access":"local","params":3,"steps":[[391,"write",6025,"Insert"],[394,"write",6025,"Modify"]]},{"name":"IsNewPhysInvtOrderLineGroup","line":399,"kind":"procedure","access":"local","params":0,"steps":[[405,"event","OnAfterIsNewPhysInvtOrderLineGroup",0]]},{"name":"SetPhysInvtRecordLineFilters","line":408,"kind":"procedure","access":"local","params":0,"steps":[[417,"event","OnAfterSetPhysInvtRecordLineFilters",0]]}]}