{"title":"Codeunit 5814 Undo Return Shipment Line, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5814-undo-return-shipment-line/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":5814,"name":"Undo Return Shipment Line","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5814-undo-return-shipment-line/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5814-undo-return-shipment-line/source/","path":"src/Layers/W1/BaseApp/Purchases/History/UndoReturnShipmentLine.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:32":{"name":"Item Ledger Entry","url":"https://jonas-paprotka.de/ref/table/32-item-ledger-entry/"},"table:6507":{"name":"Item Entry Relation","url":"https://jonas-paprotka.de/ref/table/6507-item-entry-relation/"},"codeunit:7320":{"name":"Whse. Undo Quantity","url":"https://jonas-paprotka.de/ref/codeunit/7320-whse-undo-quantity/"},"table:6651":{"name":"Return Shipment Line","url":"https://jonas-paprotka.de/ref/table/6651-return-shipment-line/"},"codeunit:5817":{"name":"Undo Posting Management","url":"https://jonas-paprotka.de/ref/codeunit/5817-undo-posting-management/"},"codeunit:5894":{"name":"Inventory Adjustment Handler","url":"https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/"},"table:313":{"name":"Inventory Setup","url":"https://jonas-paprotka.de/ref/table/313-inventory-setup/"}},"procs":[{"name":"OnRun","line":28,"kind":"trigger","steps":[[35,"event","OnBeforeOnRun",1],[44,"call","Code",0]]},{"name":"Code","line":76,"kind":"procedure","access":"local","params":0,"steps":[[85,"event","OnBeforeCode",0],[97,"call","CheckReturnShptLine",1],[105,"write",32,"DeleteAll"],[108,"write",6507,"DeleteAll"],[115,"ext","codeunit",7320,"FindPostedWhseShptLine",7],[119,"call","PostItemJnlLine",2],[121,"call","GetCorrectionLineNo",1],[123,"call","InsertNewReturnShptLine",3],[124,"event","OnAfterInsertNewReturnShptLine",0],[127,"ext","codeunit",7320,"UndoPostedWhseShptLine",1],[129,"call","UpdateOrderLine",1],[131,"ext","codeunit",7320,"UpdateShptSourceDocLines",1],[138,"event","OnBeforeReturnShptLineModify",0],[139,"write",6651,"Modify"],[140,"event","OnAfterReturnShptLineModify",0],[147,"call","MakeInventoryAdjustment",0],[149,"ext","codeunit",7320,"PostTempWhseJnlLine",1],[151,"event","OnAfterCode",0]]},{"name":"CheckReturnShptLine","line":154,"kind":"procedure","access":"local","params":1,"steps":[[160,"event","OnBeforeCheckReturnShptLine",1],[170,"ext","table",6651,"TestProdOrder",0],[172,"ext","codeunit",5817,"TestReturnShptLine",1],[174,"event","OnCheckReturnShptLineOnBeforeCollectItemLedgEntries",1],[176,"ext","codeunit",5817,"CollectItemLedgEntries",6],[178,"ext","codeunit",5817,"CheckItemLedgEntries",2]]},{"name":"GetCorrectionLineNo","line":183,"kind":"procedure","access":"local","params":1,"steps":[[190,"event","OnBeforeGetCorrectionLineNo",1]]},{"name":"PostItemJnlLine","line":209,"kind":"procedure","access":"local","params":2,"steps":[[220,"event","OnBeforePostItemJnlLine",1],[224,"call","GetCorrectionLineNo",1],[259,"event","OnAfterCopyItemJnlLineFromReturnShpt",1],[263,"ext","codeunit",7320,"InsertTempWhseJnlLine",8],[270,"ext","codeunit",5817,"TransferSourceValues",2],[271,"ext","codeunit",5817,"PostItemJnlLine",1],[274,"ext","codeunit",5817,"CollectItemLedgEntries",6],[277,"ext","codeunit",5817,"PostItemJnlLineAppliedToList",6]]},{"name":"InsertNewReturnShptLine","line":283,"kind":"procedure","access":"local","params":3,"steps":[[299,"event","OnBeforeNewReturnShptLineInsert",0],[300,"write",6651,"Insert"],[301,"event","OnAfterNewReturnShptLineInsert",0],[303,"call","InsertItemEntryRelation",2]]},{"name":"UpdateOrderLine","line":306,"kind":"procedure","params":1,"steps":[[312,"event","OnBeforeUpdateOrderLine",1],[317,"event","OnUpdateOrderLineOnBeforeUpdatePurchLine",0],[318,"ext","codeunit",5817,"UpdatePurchLine",4],[319,"event","OnAfterUpdatePurchLine",0]]},{"name":"InsertItemEntryRelation","line":322,"kind":"procedure","access":"local","params":2,"steps":[[329,"ext","table",6507,"TransferFieldsReturnShptLine",1],[330,"write",6507,"Insert"]]},{"name":"MakeInventoryAdjustment","line":334,"kind":"procedure","access":"local","params":0,"steps":[[338,"ext","codeunit",5894,"SetJobUpdateProperties",1],[339,"ext","codeunit",5894,"MakeAutomaticInventoryAdjustment",1]]},{"name":"OnSetItemAdjmtPropertiesOnBeforeCheckModifyItem","line":343,"kind":"procedure","access":"local","params":1,"steps":[[347,"ext","table",313,"UseLegacyPosting",0]]}]}