Codeunit "Undo Return Shipment Line"

ID 5814
Namespace: Microsoft.Purchases.History

Properties

Name Value
Permissions TableData "Purchase Line" = rimd, TableData "Item Entry Relation" = ri, TableData "Return Shipment Line" = rimd
TableNo Table Microsoft.Purchases.History."Return Shipment Line"
EventSubscriberInstance Manual

Methods

SetHideDialog

procedure SetHideDialog(NewHideDialog: Boolean)

Parameters

Name Type Description
NewHideDialog Boolean

UpdateOrderLine

procedure UpdateOrderLine(ReturnShptLine: Record "Return Shipment Line")

Parameters

Name Type Description
ReturnShptLine Table Microsoft.Purchases.History."Return Shipment Line"

Events

OnAfterCode

[IntegrationEvent(False,False)]
local procedure OnAfterCode(var ReturnShipmentLine: Record "Return Shipment Line", var UndoPostingManagement: Codeunit "Undo Posting Management")

Parameters

Name Type Description
ReturnShipmentLine Table Microsoft.Purchases.History."Return Shipment Line"
UndoPostingManagement Codeunit Microsoft.Inventory."Undo Posting Management"

OnAfterCopyItemJnlLineFromReturnShpt

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

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ReturnShipmentHeader Table Microsoft.Purchases.History."Return Shipment Header"
ReturnShipmentLine Table Microsoft.Purchases.History."Return Shipment Line"
WhseUndoQty Codeunit Microsoft.Warehouse.History."Whse. Undo Quantity"
ItemLedgEntryNo Integer
TempWhseJnlLine Table Microsoft.Warehouse.Journal."Warehouse Journal Line"
NextLineNo Integer
TempGlobalItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
TempGlobalItemEntryRelation Table Microsoft.Inventory.Item."Item Entry Relation"
IsHandled Boolean

OnAfterInsertNewReturnShptLine

[IntegrationEvent(False,False)]
local procedure OnAfterInsertNewReturnShptLine(var ReturnShipmentLine: Record "Return Shipment Line", PostedWhseShptLine: Record "Posted Whse. Shipment Line", var PostedWhseShptLineFound: Boolean, DocLineNo: Integer)

Parameters

Name Type Description
ReturnShipmentLine Table Microsoft.Purchases.History."Return Shipment Line"
PostedWhseShptLine Table Microsoft.Warehouse.History."Posted Whse. Shipment Line"
PostedWhseShptLineFound Boolean
DocLineNo Integer

OnAfterNewReturnShptLineInsert

[IntegrationEvent(False,False)]
local procedure OnAfterNewReturnShptLineInsert(var NewReturnShipmentLine: Record "Return Shipment Line", OldReturnShipmentLine: Record "Return Shipment Line")

Parameters

Name Type Description
NewReturnShipmentLine Table Microsoft.Purchases.History."Return Shipment Line"
OldReturnShipmentLine Table Microsoft.Purchases.History."Return Shipment Line"

OnAfterUpdatePurchLine

[IntegrationEvent(False,False)]
local procedure OnAfterUpdatePurchLine(var PurchaseLine: Record "Purchase Line", var ReturnShptLine: Record "Return Shipment Line")

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
ReturnShptLine Table Microsoft.Purchases.History."Return Shipment Line"

OnAfterReturnShptLineModify

[IntegrationEvent(False,False)]
local procedure OnAfterReturnShptLineModify(var ReturnShptLine: Record "Return Shipment Line", var TempWhseJnlLine: Record "Warehouse Journal Line" temporary, DocLineNo: Integer, var UndoPostingManagement: Codeunit "Undo Posting Management")

Parameters

Name Type Description
ReturnShptLine Table Microsoft.Purchases.History."Return Shipment Line"
TempWhseJnlLine Table Microsoft.Warehouse.Journal."Warehouse Journal Line"
DocLineNo Integer
UndoPostingManagement Codeunit Microsoft.Inventory."Undo Posting Management"

OnBeforeGetCorrectionLineNo

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

Parameters

Name Type Description
ReturnShptLine Table Microsoft.Purchases.History."Return Shipment Line"
Result Integer
IsHandled Boolean

OnBeforeCheckReturnShptLine

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckReturnShptLine(var ReturnShptLine: Record "Return Shipment Line", var IsHandled: Boolean)

Parameters

Name Type Description
ReturnShptLine Table Microsoft.Purchases.History."Return Shipment Line"
IsHandled Boolean

OnBeforeCode

[IntegrationEvent(False,False)]
local procedure OnBeforeCode(var ReturnShipmentLine: Record "Return Shipment Line", var UndoPostingManagement: Codeunit "Undo Posting Management")

Parameters

Name Type Description
ReturnShipmentLine Table Microsoft.Purchases.History."Return Shipment Line"
UndoPostingManagement Codeunit Microsoft.Inventory."Undo Posting Management"

OnBeforeNewReturnShptLineInsert

[IntegrationEvent(False,False)]
local procedure OnBeforeNewReturnShptLineInsert(var NewReturnShipmentLine: Record "Return Shipment Line", OldReturnShipmentLine: Record "Return Shipment Line")

Parameters

Name Type Description
NewReturnShipmentLine Table Microsoft.Purchases.History."Return Shipment Line"
OldReturnShipmentLine Table Microsoft.Purchases.History."Return Shipment Line"

OnBeforeOnRun

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

Parameters

Name Type Description
ReturnShipmentLine Table Microsoft.Purchases.History."Return Shipment Line"
IsHandled Boolean
SkipTypeCheck Boolean
HideDialog Boolean

OnBeforePostItemJnlLine

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

Parameters

Name Type Description
ReturnShipmentLine Table Microsoft.Purchases.History."Return Shipment Line"
DocLineNo Integer
ItemLedgEntryNo Integer
IsHandled Boolean

OnBeforeReturnShptLineModify

[IntegrationEvent(False,False)]
local procedure OnBeforeReturnShptLineModify(var ReturnShptLine: Record "Return Shipment Line", var TempWhseJnlLine: Record "Warehouse Journal Line" temporary)

Parameters

Name Type Description
ReturnShptLine Table Microsoft.Purchases.History."Return Shipment Line"
TempWhseJnlLine Table Microsoft.Warehouse.Journal."Warehouse Journal Line"

OnBeforeUpdateOrderLine

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

Parameters

Name Type Description
ReturnShptLine Table Microsoft.Purchases.History."Return Shipment Line"
IsHandled Boolean

OnUpdateOrderLineOnBeforeUpdatePurchLine

[IntegrationEvent(False,False)]
local procedure OnUpdateOrderLineOnBeforeUpdatePurchLine(var ReturnShptLine: Record "Return Shipment Line", var PurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
ReturnShptLine Table Microsoft.Purchases.History."Return Shipment Line"
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

OnCheckReturnShptLineOnBeforeCollectItemLedgEntries

[IntegrationEvent(False,False)]
local procedure OnCheckReturnShptLineOnBeforeCollectItemLedgEntries(ReturnShipmentLine: Record "Return Shipment Line", var IsHandled: Boolean)

Parameters

Name Type Description
ReturnShipmentLine Table Microsoft.Purchases.History."Return Shipment Line"
IsHandled Boolean

See also