Codeunit "Undo Return Receipt Line"

ID 5816
Namespace: Microsoft.Sales.History

Properties

Name Value
Permissions TableData "Sales Line" = rimd, TableData "Item Entry Relation" = ri, TableData "Whse. Item Entry Relation" = rimd, TableData "Return Receipt Line" = rimd
TableNo Table Microsoft.Sales.History."Return Receipt Line"
EventSubscriberInstance Manual

Methods

SetHideDialog

procedure SetHideDialog(NewHideDialog: Boolean)

Parameters

Name Type Description
NewHideDialog Boolean

UpdateOrderLine

procedure UpdateOrderLine(ReturnRcptLine: Record "Return Receipt Line")

Parameters

Name Type Description
ReturnRcptLine Table Microsoft.Sales.History."Return Receipt Line"

Events

OnBeforeCode

[IntegrationEvent(False,False)]
local procedure OnBeforeCode(ReturnReceiptLine: Record "Return Receipt Line", HideDialog: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ReturnReceiptLine Table Microsoft.Sales.History."Return Receipt Line"
HideDialog Boolean
IsHandled Boolean

OnAfterCode

[IntegrationEvent(False,False)]
local procedure OnAfterCode(var ReturnReceiptLine: Record "Return Receipt Line")

Parameters

Name Type Description
ReturnReceiptLine Table Microsoft.Sales.History."Return Receipt Line"

OnAfterCopyItemJnlLineFromReturnRcpt

[IntegrationEvent(False,False)]
local procedure 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)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ReturnReceiptHeader Table Microsoft.Sales.History."Return Receipt Header"
ReturnReceiptLine Table Microsoft.Sales.History."Return Receipt Line"
WhseUndoQty Codeunit Microsoft.Warehouse.History."Whse. Undo Quantity"
ItemLedgEntryNo Integer
TempWhseJnlLine Table Microsoft.Warehouse.Journal."Warehouse Journal Line"
NextLineNo Integer
ReturnRcptHeader Table Microsoft.Sales.History."Return Receipt Header"
TempGlobalItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
TempGlobalItemEntryRelation Table Microsoft.Inventory.Item."Item Entry Relation"
IsHandled Boolean

OnAfterInsertNewReceiptLine

[IntegrationEvent(False,False)]
local procedure OnAfterInsertNewReceiptLine(var ReturnReceiptLine: Record "Return Receipt Line", var PostedWhseReceiptLine: Record "Posted Whse. Receipt Line", var PostedWhseRcptLineFound: Boolean, DocLineNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ReturnReceiptLine Table Microsoft.Sales.History."Return Receipt Line"
PostedWhseReceiptLine Table Microsoft.Warehouse.History."Posted Whse. Receipt Line"
PostedWhseRcptLineFound Boolean
DocLineNo Integer
IsHandled Boolean

OnAfterNewReturnRcptLineInsert

[IntegrationEvent(False,False)]
local procedure OnAfterNewReturnRcptLineInsert(var NewReturnReceiptLine: Record "Return Receipt Line", OldReturnReceiptLine: Record "Return Receipt Line")

Parameters

Name Type Description
NewReturnReceiptLine Table Microsoft.Sales.History."Return Receipt Line"
OldReturnReceiptLine Table Microsoft.Sales.History."Return Receipt Line"

OnAfterReturnRcptLineModify

[IntegrationEvent(False,False)]
local procedure OnAfterReturnRcptLineModify(var ReturnRcptLine: Record "Return Receipt Line", var TempWhseJnlLine: Record "Warehouse Journal Line" temporary, DocLineNo: Integer, HideDialog: Boolean)

Parameters

Name Type Description
ReturnRcptLine Table Microsoft.Sales.History."Return Receipt Line"
TempWhseJnlLine Table Microsoft.Warehouse.Journal."Warehouse Journal Line"
DocLineNo Integer
HideDialog Boolean

OnAfterUpdateSalesLine

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateSalesLine(var ReturnRcptLine: Record "Return Receipt Line", var SalesLine: Record "Sales Line")

Parameters

Name Type Description
ReturnRcptLine Table Microsoft.Sales.History."Return Receipt Line"
SalesLine Table Microsoft.Sales.Document."Sales Line"

OnBeforeCheckReturnRcptLine

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckReturnRcptLine(var ReturnReceiptLine: Record "Return Receipt Line", var IsHandled: Boolean)

Parameters

Name Type Description
ReturnReceiptLine Table Microsoft.Sales.History."Return Receipt Line"
IsHandled Boolean

OnBeforeGetCorrectionLineNo

[IntegrationEvent(False,False)]
local procedure OnBeforeGetCorrectionLineNo(ReturnRcptLine: Record "Return Receipt Line", var Result: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ReturnRcptLine Table Microsoft.Sales.History."Return Receipt Line"
Result Integer
IsHandled Boolean

OnBeforeOnRun

[IntegrationEvent(False,False)]
local procedure OnBeforeOnRun(var ReturnReceiptLine: Record "Return Receipt Line", var IsHandled: Boolean, var SkipTypeCheck: Boolean, var HideDialog: Boolean)

Parameters

Name Type Description
ReturnReceiptLine Table Microsoft.Sales.History."Return Receipt Line"
IsHandled Boolean
SkipTypeCheck Boolean
HideDialog Boolean

OnBeforeNewReturnRcptLineInsert

[IntegrationEvent(False,False)]
local procedure OnBeforeNewReturnRcptLineInsert(var NewReturnReceiptLine: Record "Return Receipt Line", OldReturnReceiptLine: Record "Return Receipt Line")

Parameters

Name Type Description
NewReturnReceiptLine Table Microsoft.Sales.History."Return Receipt Line"
OldReturnReceiptLine Table Microsoft.Sales.History."Return Receipt Line"

OnBeforePostItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnBeforePostItemJnlLine(var ReturnReceiptLine: Record "Return Receipt Line", DocLineNo: Integer, var ItemLedgEntryNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ReturnReceiptLine Table Microsoft.Sales.History."Return Receipt Line"
DocLineNo Integer
ItemLedgEntryNo Integer
IsHandled Boolean

OnBeforeReturnRcptLineModify

[IntegrationEvent(False,False)]
local procedure OnBeforeReturnRcptLineModify(var ReturnReceiptLine: Record "Return Receipt Line", var TempWhseJnlLine: Record "Warehouse Journal Line" temporary)

Parameters

Name Type Description
ReturnReceiptLine Table Microsoft.Sales.History."Return Receipt Line"
TempWhseJnlLine Table Microsoft.Warehouse.Journal."Warehouse Journal Line"

OnBeforeUpdateOrderLine

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateOrderLine(var ReturnReceiptLine: Record "Return Receipt Line", var IsHandled: Boolean)

Parameters

Name Type Description
ReturnReceiptLine Table Microsoft.Sales.History."Return Receipt Line"
IsHandled Boolean

OnUpdateOrderLineOnBeforeUpdateSalesLine

[IntegrationEvent(False,False)]
local procedure OnUpdateOrderLineOnBeforeUpdateSalesLine(var ReturnReceiptLine: Record "Return Receipt Line", var SalesLine: Record "Sales Line")

Parameters

Name Type Description
ReturnReceiptLine Table Microsoft.Sales.History."Return Receipt Line"
SalesLine Table Microsoft.Sales.Document."Sales Line"

OnCheckReturnRcptLineOnBeforeCheckReturnQtyRcdNotInvd

[IntegrationEvent(False,False)]
local procedure OnCheckReturnRcptLineOnBeforeCheckReturnQtyRcdNotInvd(var ReturnReceiptLine: Record "Return Receipt Line", var IsHandled: Boolean)

Parameters

Name Type Description
ReturnReceiptLine Table Microsoft.Sales.History."Return Receipt Line"
IsHandled Boolean

OnCheckReturnRcptLineOnBeforeCollectItemLedgEntries

[IntegrationEvent(False,False)]
local procedure OnCheckReturnRcptLineOnBeforeCollectItemLedgEntries(var ReturnRcptLine: Record "Return Receipt Line", var TempItemLedgEntry: Record "Item Ledger Entry" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
ReturnRcptLine Table Microsoft.Sales.History."Return Receipt Line"
TempItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsHandled Boolean

OnCodeOnBeforeCallCheckReturnRcptLine

[IntegrationEvent(False,False)]
local procedure OnCodeOnBeforeCallCheckReturnRcptLine(var ReturnReceiptLine: Record "Return Receipt Line")

Parameters

Name Type Description
ReturnReceiptLine Table Microsoft.Sales.History."Return Receipt Line"

OnPostItemJnlLineOnAfterRunItemJnlPostLine

[IntegrationEvent(False,False)]
local procedure OnPostItemJnlLineOnAfterRunItemJnlPostLine(var ItemJournalLine: Record "Item Journal Line", ReturnReceiptLine: Record "Return Receipt Line", ReturnReceiptHeader: Record "Return Receipt Header", var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ReturnReceiptLine Table Microsoft.Sales.History."Return Receipt Line"
ReturnReceiptHeader Table Microsoft.Sales.History."Return Receipt Header"
ItemJnlPostLine Codeunit Microsoft.Inventory.Posting."Item Jnl.-Post Line"

See also