Codeunit 5814 "Undo Return Shipment Line"
Base Application · Microsoft.Purchases.History
Across versions
- BC23present
- BC241 events added, 1 events removed
- BC25unchanged
- BC261 procedures added
- BC27-30unchanged
Neighbourhood 5 connected objects and pages
Base Application · Microsoft.Purchases.History · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| TableNo | Return Shipment Line |
| Permissions | TableData “Purchase Line” = rimd, TableData “Item Entry Relation” = ri, TableData “Return Shipment Line” = rimd |
Events published
OnAfterCode(var ReturnShipmentLine: Record "Return Shipment Line"; var UndoPostingManagement: Codeunit "Undo Posting Management")(integration)OnAfterCopyItemJnlLineFromReturnShpt(var ItemJournalLine: Record "Item Journal Line"; ReturnShipmentHeader: Record "Return Shipment Header"; ReturnShipmentLine: Record "Return Shipment Line"; var WhseUndoQty: Codeunit "Whse. Undo Quantity"; var ItemLedgEntryNo: Integer; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; var NextLineNo: Integer; var TempGlobalItemLedgerEntry: Record "Item Ledger Entry" temporary; var TempGlobalItemEntryRelation: Record "Item Entry Relation" temporary; var IsHandled: Boolean)+ BC24 − BC24 (integration)OnAfterInsertNewReturnShptLine(var ReturnShipmentLine: Record "Return Shipment Line"; PostedWhseShptLine: Record "Posted Whse. Shipment Line"; var PostedWhseShptLineFound: Boolean; DocLineNo: Integer)(integration)OnAfterNewReturnShptLineInsert(var NewReturnShipmentLine: Record "Return Shipment Line"; OldReturnShipmentLine: Record "Return Shipment Line")(integration)OnAfterUpdatePurchLine(var PurchaseLine: Record "Purchase Line"; var ReturnShptLine: Record "Return Shipment Line")(integration)OnAfterReturnShptLineModify(var ReturnShptLine: Record "Return Shipment Line"; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; DocLineNo: Integer; var UndoPostingManagement: Codeunit "Undo Posting Management")(integration)OnBeforeGetCorrectionLineNo(ReturnShptLine: Record "Return Shipment Line"; var Result: Integer; var IsHandled: Boolean)(integration)OnBeforeCheckReturnShptLine(var ReturnShptLine: Record "Return Shipment Line"; var IsHandled: Boolean)(integration)OnBeforeCode(var ReturnShipmentLine: Record "Return Shipment Line"; var UndoPostingManagement: Codeunit "Undo Posting Management")(integration)OnBeforeNewReturnShptLineInsert(var NewReturnShipmentLine: Record "Return Shipment Line"; OldReturnShipmentLine: Record "Return Shipment Line")(integration)OnBeforeOnRun(var ReturnShipmentLine: Record "Return Shipment Line"; var IsHandled: Boolean; var SkipTypeCheck: Boolean; var HideDialog: Boolean)(integration)OnBeforePostItemJnlLine(var ReturnShipmentLine: Record "Return Shipment Line"; DocLineNo: Integer; var ItemLedgEntryNo: Integer; var IsHandled: Boolean)(integration)OnBeforeReturnShptLineModify(var ReturnShptLine: Record "Return Shipment Line"; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary)(integration)OnBeforeUpdateOrderLine(var ReturnShptLine: Record "Return Shipment Line"; var IsHandled: Boolean)(integration)OnUpdateOrderLineOnBeforeUpdatePurchLine(var ReturnShptLine: Record "Return Shipment Line"; var PurchaseLine: Record "Purchase Line")(integration)OnCheckReturnShptLineOnBeforeCollectItemLedgEntries(ReturnShipmentLine: Record "Return Shipment Line"; var IsHandled: Boolean)(integration)
Event subscriptions
- OnSetItemAdjmtPropertiesOnBeforeCheckModifyItem subscribes to Codeunit “Item Jnl.-Post Line” OnSetItemAdjmtPropertiesOnBeforeCheckModifyItem
Procedures
SetHideDialog(NewHideDialog: Boolean)UpdateOrderLine(ReturnShptLine: Record "Return Shipment Line")
Plus 7 local procedures.
Triggers
OnRun
Relations
Calls
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 5817 “Undo Posting Management” (8 calls:
CheckReturnShptLine → CheckItemLedgEntries,CheckReturnShptLine → CollectItemLedgEntries,CheckReturnShptLine → TestReturnShptLine, …) - Codeunit 7320 “Whse. Undo Quantity” (5 calls:
Code → FindPostedWhseShptLine,Code → PostTempWhseJnlLine,Code → UndoPostedWhseShptLine, …) - Codeunit 5894 “Inventory Adjustment Handler” (2 calls:
MakeInventoryAdjustment → MakeAutomaticInventoryAdjustment,MakeInventoryAdjustment → SetJobUpdateProperties)
Called by
- Page 6651 “Posted Return Shipment Subform” (1 call:
UndoReturnShipment → (object))
Recent changes
- 2026-08-06 #10005 Improve error messages when there are no quantities to reverse in shipped/received lines in Sales/Purchase/Transfer (main, BC30, fix)
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Undo Return Shipment Line"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.