codeunitSales & Receivablesofficial - Microsoftderived - from the source, no model text

Codeunit 5816 "Undo Return Receipt Line"

Base Application · Microsoft.Sales.History

Across versions

  1. BC23-25present
  2. BC261 procedures added, 1 events added
  3. BC27-29unchanged
  4. BC302 events added, 2 events removed

Neighbourhood 6 connected objects and pages

Table 6661 "Return Receipt Line" (relates to)Return Receipt LineCodeunit 5817 "Undo Posting Management" (calls, 6 links)Undo Posting ManagementCodeunit 7320 "Whse. Undo Quantity" (calls, 5 links)Whse. Undo QuantityCodeunit 5894 "Inventory Adjustment Handler" (calls, 2 links)Inventory Adjustment HandlerCodeunit 22 "Item Jnl.-Post Line" (calls)Item Jnl.-Post LinePage 6661 "Posted Return Receipt Subform" (calls)Posted Return Receipt Subform

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

Base Application · Microsoft.Sales.History · BC23-30 · source at 4e6a307c · facts from BC29

Properties

Property Value
TableNo Return Receipt Line
Permissions TableData “Sales Line” = rimd, TableData “Item Entry Relation” = ri, TableData “Whse. Item Entry Relation” = rimd, TableData “Return Receipt Line” = rimd

Events published

  • OnBeforeCode(ReturnReceiptLine: Record "Return Receipt Line"; HideDialog: Boolean; var IsHandled: Boolean) (integration): Raised before the undo return receipt line process begins.
  • OnAfterCode(var ReturnReceiptLine: Record "Return Receipt Line") (integration): Raised after the undo return receipt line process is completed.
  • OnAfterCopyItemJnlLineFromReturnRcpt(var ItemJournalLine: Record "Item Journal Line"; ReturnReceiptHeader: Record "Return Receipt Header"; ReturnReceiptLine: Record "Return Receipt Line"; var WhseUndoQty: Codeunit "Whse. Undo Quantity"; var ItemLedgEntryNo: Integer; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; var NextLineNo: Integer; ReturnRcptHeader: Record "Return Receipt Header"; var TempGlobalItemLedgEntry: Record "Item Ledger Entry" temporary; var TempGlobalItemEntryRelation: Record "Item Entry Relation" temporary; var IsHandled: Boolean) + BC30 − BC30 (integration): Raised after copying the item journal line from the return receipt during the undo process.
  • OnAfterInsertNewReceiptLine(var ReturnReceiptLine: Record "Return Receipt Line"; var PostedWhseReceiptLine: Record "Posted Whse. Receipt Line"; var PostedWhseRcptLineFound: Boolean; DocLineNo: Integer; var IsHandled: Boolean) (integration): Raised after inserting a new correction receipt line during the undo process.
  • OnAfterNewReturnRcptLineInsert(var NewReturnReceiptLine: Record "Return Receipt Line"; OldReturnReceiptLine: Record "Return Receipt Line") (integration): Raised after inserting a new correction return receipt line during the undo process.
  • OnAfterReturnRcptLineModify(var ReturnRcptLine: Record "Return Receipt Line"; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; DocLineNo: Integer; HideDialog: Boolean) (integration): Raised after modifying the original return receipt line during the undo process.
  • OnAfterUpdateSalesLine(var ReturnRcptLine: Record "Return Receipt Line"; var SalesLine: Record "Sales Line") (integration): Raised after updating the related sales return order line during the undo process.
  • OnBeforeCheckReturnRcptLine(var ReturnReceiptLine: Record "Return Receipt Line"; var IsHandled: Boolean) (integration): Raised before validating that the return receipt line can be undone.
  • OnBeforeGetCorrectionLineNo(ReturnRcptLine: Record "Return Receipt Line"; var Result: Integer; var IsHandled: Boolean) (integration): Raised before calculating the correction line number for the undo receipt line.
  • OnBeforeOnRun(var ReturnReceiptLine: Record "Return Receipt Line"; var IsHandled: Boolean; var SkipTypeCheck: Boolean; var HideDialog: Boolean) (integration): Raised before the undo return receipt line OnRun trigger executes.
  • OnBeforeNewReturnRcptLineInsert(var NewReturnReceiptLine: Record "Return Receipt Line"; OldReturnReceiptLine: Record "Return Receipt Line") (integration): Raised before inserting a new correction return receipt line during the undo process.
  • OnBeforePostItemJnlLine(var ReturnReceiptLine: Record "Return Receipt Line"; DocLineNo: Integer; var ItemLedgEntryNo: Integer; var IsHandled: Boolean) + BC30 − BC30 (integration): Raised before posting the item journal line during the undo return receipt process.
  • OnBeforeReturnRcptLineModify(var ReturnReceiptLine: Record "Return Receipt Line"; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary) (integration): Raised before modifying the original return receipt line during the undo process.
  • OnBeforeUpdateOrderLine(var ReturnReceiptLine: Record "Return Receipt Line"; var IsHandled: Boolean) (integration): Raised before updating the sales return order line during the undo process.
  • OnUpdateOrderLineOnBeforeUpdateSalesLine(var ReturnReceiptLine: Record "Return Receipt Line"; var SalesLine: Record "Sales Line") (integration): Raised before updating the sales line quantities during the undo process.
  • OnCheckReturnRcptLineOnBeforeCheckReturnQtyRcdNotInvd(var ReturnReceiptLine: Record "Return Receipt Line"; var IsHandled: Boolean) (integration): Raised before checking the return quantity received but not invoiced during validation.
  • OnCheckReturnRcptLineOnBeforeCollectItemLedgEntries(var ReturnRcptLine: Record "Return Receipt Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var IsHandled: Boolean) (integration): Raised before collecting item ledger entries during return receipt line validation.
  • OnCodeOnBeforeCallCheckReturnRcptLine(var ReturnReceiptLine: Record "Return Receipt Line") (integration): Raised before calling the return receipt line check during the undo process.
  • OnPostItemJnlLineOnAfterRunItemJnlPostLine(var ItemJournalLine: Record "Item Journal Line"; ReturnReceiptLine: Record "Return Receipt Line"; ReturnReceiptHeader: Record "Return Receipt Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") + BC26 (integration): Raised after running the item journal post line during the undo return receipt process.

Event subscriptions

  • OnSetItemAdjmtPropertiesOnBeforeCheckModifyItem subscribes to Codeunit “Item Jnl.-Post Line” OnSetItemAdjmtPropertiesOnBeforeCheckModifyItem

Procedures

  • SetHideDialog(NewHideDialog: Boolean): Sets whether the confirmation dialog should be hidden when undoing return receipt lines.
  • UpdateOrderLine(ReturnRcptLine: Record "Return Receipt Line"): Updates the related sales return order line after undoing a return receipt line.

Plus 8 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.

Called by

Recent changes

No source states these links: they share an object, a model read them, or a person found the same subject.

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

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 Receipt Line"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources