Codeunit "Undo Purchase Receipt Line"

ID 5813
Namespace: Microsoft.Purchases.History

Properties

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

Methods

SetHideDialog

procedure SetHideDialog(NewHideDialog: Boolean)

Parameters

Name Type Description
NewHideDialog Boolean

UpdateOrderLine

procedure UpdateOrderLine(PurchRcptLine: Record "Purch. Rcpt. Line")

Parameters

Name Type Description
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"

UpdateBlanketOrder

procedure UpdateBlanketOrder(PurchRcptLine: Record "Purch. Rcpt. Line")

Parameters

Name Type Description
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"

HasInvoicedNotReturnedQuantity

procedure HasInvoicedNotReturnedQuantity(PurchRcptLine: Record "Purch. Rcpt. Line"): Boolean

Parameters

Name Type Description
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"

Returns

Type Description
Boolean

Events

OnAfterCode

[IntegrationEvent(False,False)]
local procedure OnAfterCode(var PurchRcptLine: Record "Purch. Rcpt. Line", var UndoPostingManagement: Codeunit "Undo Posting Management")

Parameters

Name Type Description
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
UndoPostingManagement Codeunit Microsoft.Inventory."Undo Posting Management"

OnAfterCopyItemJnlLineFromPurchRcpt

[IntegrationEvent(False,False)]
local procedure OnAfterCopyItemJnlLineFromPurchRcpt(var ItemJournalLine: Record "Item Journal Line", PurchRcptHeader: Record "Purch. Rcpt. Header", var PurchRcptLine: Record "Purch. Rcpt. Line", var WhseUndoQty: Codeunit "Whse. Undo Quantity", var ItemLedgEntryNo: Integer, var NextLineNo: Integer, var TempWhseJnlLine: Record "Warehouse Journal Line" temporary, 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"
PurchRcptHeader Table Microsoft.Purchases.History."Purch. Rcpt. Header"
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
WhseUndoQty Codeunit Microsoft.Warehouse.History."Whse. Undo Quantity"
ItemLedgEntryNo Integer
NextLineNo Integer
TempWhseJnlLine Table Microsoft.Warehouse.Journal."Warehouse Journal Line"
TempGlobalItemLedgerEntry 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 PurchRcptLine: Record "Purch. Rcpt. Line", PostedWhseReceiptLine: Record "Posted Whse. Receipt Line", var PostedWhseRcptLineFound: Boolean, DocLineNo: Integer, var PostedWhseRcptLine: Record "Posted Whse. Receipt Line")

Parameters

Name Type Description
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
PostedWhseReceiptLine Table Microsoft.Warehouse.History."Posted Whse. Receipt Line"
PostedWhseRcptLineFound Boolean
DocLineNo Integer
PostedWhseRcptLine Table Microsoft.Warehouse.History."Posted Whse. Receipt Line"

OnAfterNewPurchRcptLineInsert

[IntegrationEvent(False,False)]
local procedure OnAfterNewPurchRcptLineInsert(var NewPurchRcptLine: Record "Purch. Rcpt. Line", OldPurchRcptLine: Record "Purch. Rcpt. Line", var TempGlobalItemEntryRelation: Record "Item Entry Relation" temporary, var SkipInsertItemEntryRelation: Boolean)

Parameters

Name Type Description
NewPurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
OldPurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
TempGlobalItemEntryRelation Table Microsoft.Inventory.Item."Item Entry Relation"
SkipInsertItemEntryRelation Boolean

OnAfterPurchRcptLineModify

[IntegrationEvent(False,False)]
local procedure OnAfterPurchRcptLineModify(var PurchRcptLine: Record "Purch. Rcpt. Line", var TempWhseJnlLine: Record "Warehouse Journal Line" temporary, DocLineNo: Integer, var UndoPostingManagement: Codeunit "Undo Posting Management")

Parameters

Name Type Description
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
TempWhseJnlLine Table Microsoft.Warehouse.Journal."Warehouse Journal Line"
DocLineNo Integer
UndoPostingManagement Codeunit Microsoft.Inventory."Undo Posting Management"

OnAfterUpdateOrderLine

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateOrderLine(var PurchRcptLine: Record "Purch. Rcpt. Line", var PurchLine: Record "Purchase Line")

Parameters

Name Type Description
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
PurchLine Table Microsoft.Purchases.Document."Purchase Line"

OnBeforeBlanketOrderInitOutstanding

[IntegrationEvent(False,False)]
local procedure OnBeforeBlanketOrderInitOutstanding(var BlanketOrderPurchaseLine: Record "Purchase Line", PurchRcptLine: Record "Purch. Rcpt. Line")

Parameters

Name Type Description
BlanketOrderPurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"

OnBeforeCheckPurchRcptLine

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line", var IsHandled: Boolean, var TempItemLedgerEntry: Record "Item Ledger Entry" temporary)

Parameters

Name Type Description
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
IsHandled Boolean
TempItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnBeforeCode

[IntegrationEvent(False,False)]
local procedure OnBeforeCode(var PurchRcptLine: Record "Purch. Rcpt. Line", var UndoPostingManagement: Codeunit "Undo Posting Management")

Parameters

Name Type Description
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
UndoPostingManagement Codeunit Microsoft.Inventory."Undo Posting Management"

OnBeforeCheckPurchRcptLines

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckPurchRcptLines(var PurchRcptLine: Record "Purch. Rcpt. Line", var Window: Dialog, var IsHandled: Boolean)

Parameters

Name Type Description
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
Window Dialog
IsHandled Boolean

OnBeforeGetCorrectionLineNo

[IntegrationEvent(False,False)]
local procedure OnBeforeGetCorrectionLineNo(PurchRcptLine: Record "Purch. Rcpt. Line", var Result: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
Result Integer
IsHandled Boolean

OnBeforeNewPurchRcptLineInsert

[IntegrationEvent(False,False)]
local procedure OnBeforeNewPurchRcptLineInsert(var NewPurchRcptLine: Record "Purch. Rcpt. Line", OldPurchRcptLine: Record "Purch. Rcpt. Line")

Parameters

Name Type Description
NewPurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
OldPurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"

OnBeforeOnRun

[IntegrationEvent(False,False)]
local procedure OnBeforeOnRun(var PurchRcptLine: Record "Purch. Rcpt. Line", var IsHandled: Boolean, var SkipTypeCheck: Boolean, var HideDialog: Boolean)

Parameters

Name Type Description
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
IsHandled Boolean
SkipTypeCheck Boolean
HideDialog Boolean

OnBeforePostItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnBeforePostItemJnlLine(var PurchRcptLine: Record "Purch. Rcpt. Line", DocLineNo: Integer, var ItemLedgEntryNo: Integer, var IsHandled: Boolean, var NewDocLineNo: Integer, var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary)

Parameters

Name Type Description
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
DocLineNo Integer
ItemLedgEntryNo Integer
IsHandled Boolean
NewDocLineNo Integer
TempWarehouseJournalLine Table Microsoft.Warehouse.Journal."Warehouse Journal Line"

OnBeforePurchRcptLineModify

[IntegrationEvent(False,False)]
local procedure OnBeforePurchRcptLineModify(var PurchRcptLine: Record "Purch. Rcpt. Line", var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary)

Parameters

Name Type Description
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
TempWarehouseJournalLine Table Microsoft.Warehouse.Journal."Warehouse Journal Line"

OnBeforeReapplyJobConsumptionFromApplyToEntryList

[IntegrationEvent(False,False)]
local procedure OnBeforeReapplyJobConsumptionFromApplyToEntryList(PurchRcptHeader: Record "Purch. Rcpt. Header", PurchRcptLine: Record "Purch. Rcpt. Line", ItemJnlLine: Record "Item Journal Line", var TempApplyToEntryList: Record "Item Ledger Entry" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
PurchRcptHeader Table Microsoft.Purchases.History."Purch. Rcpt. Header"
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
TempApplyToEntryList Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsHandled Boolean

OnBeforeUpdateBlanketOrder

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateBlanketOrder(var PurchRcptLine: Record "Purch. Rcpt. Line", var IsHandled: Boolean)

Parameters

Name Type Description
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
IsHandled Boolean

OnBeforeUpdateOrderLine

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateOrderLine(var PurchRcptLine: Record "Purch. Rcpt. Line", var IsHandled: Boolean)

Parameters

Name Type Description
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
IsHandled Boolean

OnPostItemJournalInboundItemEntryPostingWithJob

[IntegrationEvent(False,False)]
local procedure OnPostItemJournalInboundItemEntryPostingWithJob(var ItemJournalLine: Record "Item Journal Line", ItemApplicationEntry: Record "Item Application Entry", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemApplicationEntry Table Microsoft.Inventory.Ledger."Item Application Entry"
IsHandled Boolean

OnPostItemJnlLineOnAfterCollectItemLedgEntries

[IntegrationEvent(False,False)]
local procedure OnPostItemJnlLineOnAfterCollectItemLedgEntries(var PurchRcptHeader: Record "Purch. Rcpt. Header", var PurchRcptLine: Record "Purch. Rcpt. Line", SourceCodeSetup: Record "Source Code Setup", var IsHandled: Boolean)

Parameters

Name Type Description
PurchRcptHeader Table Microsoft.Purchases.History."Purch. Rcpt. Header"
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
SourceCodeSetup Table Microsoft.Foundation.AuditCodes."Source Code Setup"
IsHandled Boolean

OnPostItemJnlLineOnAfterInsertTempWhseJnlLine

[IntegrationEvent(False,False)]
local procedure OnPostItemJnlLineOnAfterInsertTempWhseJnlLine(PurchRcptLine: Record "Purch. Rcpt. Line", var ItemJnlLine: Record "Item Journal Line", var TempWhseJnlLine: Record "Warehouse Journal Line" temporary, var NextLineNo: Integer)

Parameters

Name Type Description
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
TempWhseJnlLine Table Microsoft.Warehouse.Journal."Warehouse Journal Line"
NextLineNo Integer

OnPostItemJnlLineOnBeforeUndoPosting

[IntegrationEvent(False,False)]
local procedure OnPostItemJnlLineOnBeforeUndoPosting(var ItemJournalLine: Record "Item Journal Line", var PurchRcptHeader: Record "Purch. Rcpt. Header", var PurchRcptLine: Record "Purch. Rcpt. Line", SourceCodeSetup: Record "Source Code Setup", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
PurchRcptHeader Table Microsoft.Purchases.History."Purch. Rcpt. Header"
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
SourceCodeSetup Table Microsoft.Foundation.AuditCodes."Source Code Setup"
IsHandled Boolean

OnPostItemJnlLineOnBeforeUndoValuePostingWithJob

[IntegrationEvent(False,False)]
local procedure OnPostItemJnlLineOnBeforeUndoValuePostingWithJob(PurchRcptHeader: Record "Purch. Rcpt. Header", PurchRcptLine: Record "Purch. Rcpt. Line", var ItemJnlLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
PurchRcptHeader Table Microsoft.Purchases.History."Purch. Rcpt. Header"
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnUpdateOrderLineOnBeforeUpdatePurchLine

[IntegrationEvent(False,False)]
local procedure OnUpdateOrderLineOnBeforeUpdatePurchLine(var PurchRcptLine: Record "Purch. Rcpt. Line", var PurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

OnCheckPurchRcptLinesAfterPurchRcptLineSetFilters

[IntegrationEvent(False,False)]
local procedure OnCheckPurchRcptLinesAfterPurchRcptLineSetFilters(var PurchRcptLine: Record "Purch. Rcpt. Line")

Parameters

Name Type Description
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"

OnCheckPurchRcptLineOnBeforeCollectItemLedgEntries

[IntegrationEvent(False,False)]
local procedure OnCheckPurchRcptLineOnBeforeCollectItemLedgEntries(var PurchRcptLine: Record "Purch. Rcpt. Line", var TempItemLedgEntry: Record "Item Ledger Entry" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
TempItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsHandled Boolean

OnCodeOnBeforeLoopPurchRcptLine

[IntegrationEvent(False,False)]
local procedure OnCodeOnBeforeLoopPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line")

Parameters

Name Type Description
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"

OnBeforeCheckPurchRcptLineFields

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckPurchRcptLineFields(var PurchRcptLine: Record "Purch. Rcpt. Line", var IsHandled: Boolean)

Parameters

Name Type Description
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
IsHandled Boolean

OnCodeOnBeforeMakeInventoryAdjustment

[IntegrationEvent(False,False)]
local procedure OnCodeOnBeforeMakeInventoryAdjustment(var PurchaseLine: Record "Purchase Line", var PurchaseReceiptLine: Record "Purch. Rcpt. Line")

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
PurchaseReceiptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"

OnUpdateItemJnlLineProdOrderSubcontracting

[IntegrationEvent(False,False)]
local procedure OnUpdateItemJnlLineProdOrderSubcontracting(var ItemJnlLine: Record "Item Journal Line", var PurchRcptLine: Record "Purch. Rcpt. Line", var TempOutputItemLedgerEntry: Record "Item Ledger Entry" temporary, var OneLinePostingUndo: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
TempOutputItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
OneLinePostingUndo Boolean

See also