{"title":"Codeunit 6648 Purch.-Get Return Shipments, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/6648-purch-get-return-shipments/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":6648,"name":"Purch.-Get Return Shipments","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/6648-purch-get-return-shipments/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/6648-purch-get-return-shipments/source/","path":"src/Layers/W1/BaseApp/Purchases/Document/PurchGetReturnShipments.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":{"page:6648":{"name":"Get Return Shipment Lines","url":"https://jonas-paprotka.de/ref/page/6648-get-return-shipment-lines/"},"table:6651":{"name":"Return Shipment Line","url":"https://jonas-paprotka.de/ref/table/6651-return-shipment-line/"},"codeunit:5402":{"name":"Unit of Measure Management","url":"https://jonas-paprotka.de/ref/codeunit/5402-unit-of-measure-management/"},"table:5805":{"name":"Item Charge Assignment (Purch)","url":"https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/"},"table:124":{"name":"Purch. Cr. Memo Hdr.","url":"https://jonas-paprotka.de/ref/table/124-purch-cr-memo-hdr/"},"codeunit:1173":{"name":"Document Attachment Mgmt","url":"https://jonas-paprotka.de/ref/codeunit/1173-document-attachment-mgmt/"}},"procs":[{"name":"OnRun","line":15,"kind":"trigger","steps":[[17,"call","CheckHeader",1],[23,"event","OnRunOnAfterSetReturnShptLineFilters",0],[27,"ext","page",6648,"SetPurchHeader",1]]},{"name":"CreateInvLines","line":45,"kind":"procedure","params":1,"steps":[[52,"event","OnCreateInvLinesOnAfterReturnShptLine2SetFilters",0],[63,"call","CheckReturnShptPayToVendorNo",3],[72,"event","OnBeforeTransferLineToPurchaseDoc",0],[75,"event","OnCreateInvLinesOnAfterCalcShouldInsertReturnRcptLine",0],[78,"call","CheckReturnShipmentLineVATBusPostingGroup",2],[79,"ext","table",6651,"InsertInvLineFromRetShptLine",1],[80,"call","CopyDocumentAttachments",2],[82,"call","GetItemChargeAssgnt",2],[84,"event","OnCreateInvLinesOnAfterLoopIteration",0],[89,"call","CopyDocumentAttachments",2],[92,"event","OnAfterCreateInvLines",0]]},{"name":"CheckHeader","line":95,"kind":"procedure","access":"local","params":1,"steps":[[100,"event","OnBeforeCheckHeader",1]]},{"name":"CheckReturnShipmentLineVATBusPostingGroup","line":109,"kind":"procedure","access":"local","params":2,"steps":[[114,"event","OnBeforeCheckReturnShipmentLineVATBusPostingGroup",1]]},{"name":"CheckReturnShptPayToVendorNo","line":121,"kind":"procedure","access":"local","params":3,"steps":[[126,"event","OnBeforeCheckReturnShptPayToVendorNo",1]]},{"name":"SetPurchHeader","line":133,"kind":"procedure","params":1,"steps":[[139,"event","OnSetPurchHeaderOnBegoreTestIsCreditMemo",1]]},{"name":"GetItemChargeAssgnt","line":144,"kind":"procedure","params":2,"steps":[[159,"call","CopyItemChargeAssgnt",4]]},{"name":"CopyItemChargeAssgnt","line":164,"kind":"procedure","access":"local","params":4,"steps":[[180,"ext","codeunit",5402,"QtyRndPrecision",0],[201,"validate",5805,"Unit Cost"],[215,"event","OnCopyItemChargeAssgntOnBeforeFindPurchLine2",0],[217,"event","OnCopyItemChargeAssgntOnAfterFindPurchLine2",0],[227,"write",5805,"Insert"]]},{"name":"GetPurchRetOrderCrMemos","line":234,"kind":"procedure","params":2,"steps":[[240,"write",124,"DeleteAll"],[249,"write",124,"Insert"]]},{"name":"AnyLineHasAttachments","line":253,"kind":"procedure","access":"local","params":1,"steps":[[256,"call","EntityHasAttachments",2]]},{"name":"CopyDocumentAttachments","line":271,"kind":"procedure","access":"local","params":2,"steps":[[280,"call","OrderHasAttachments",1],[282,"ext","codeunit",1173,"CopyAttachments",2]]},{"name":"CopyDocumentAttachments","line":285,"kind":"procedure","access":"local","params":2,"steps":[[292,"call","AnyLineHasAttachments",1],[297,"ext","codeunit",1173,"CopyAttachments",2]]},{"name":"OrderHasAttachments","line":300,"kind":"procedure","access":"local","params":1,"steps":[[302,"call","EntityHasAttachments",2]]}]}