Codeunit 5813 Undo Purchase Receipt Line

Base Application, Microsoft.Purchases.History

Source AL, 829 lines

src/Layers/W1/BaseApp/Purchases/History/UndoPurchaseReceiptLine.Codeunit.allines 23 to 38 of 829, Copyright (c) Microsoft Corporation. MIT

codeunit 5813 "Undo Purchase Receipt Line"{    Permissions = TableData "Purchase Line" = rimd,                  TableData "Purch. Rcpt. Line" = rimd,                  TableData "Item Entry Relation" = ri,                  TableData "Whse. Item Entry Relation" = rimd;    TableNo = "Purch. Rcpt. Line";    EventSubscriberInstance = Manual;    trigger OnRun()    var        SkipTypeCheck: Boolean;        IsHandled: Boolean;    begin        IsHandled := false;        OnBeforeOnRun(Rec, IsHandled, SkipTypeCheck, HideDialog);

All 829 lines

Events 31 in 29

[IntegrationEvent] 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")17-29
[IntegrationEvent] OnAfterUpdateOrderLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchLine: Record "Purchase Line")17-29
[IntegrationEvent] OnBeforeBlanketOrderInitOutstanding(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line")17-29
[IntegrationEvent] OnBeforeCheckPurchRcptLines(var PurchRcptLine: Record "Purch. Rcpt. Line"; var Window: Dialog; var IsHandled: Boolean)17-29
[IntegrationEvent] OnBeforeNewPurchRcptLineInsert(var NewPurchRcptLine: Record "Purch. Rcpt. Line"; OldPurchRcptLine: Record "Purch. Rcpt. Line")17-29
[IntegrationEvent] OnBeforePurchRcptLineModify(var PurchRcptLine: Record "Purch. Rcpt. Line"; var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary)17-29
[IntegrationEvent] 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)17-29

All 41 events in 17-29

Public procedures 5 in 29

SetHideDialog(NewHideDialog: Boolean)17-29
UpdateOrderLine(PurchRcptLine: Record "Purch. Rcpt. Line")17-29
UpdateBlanketOrder(PurchRcptLine: Record "Purch. Rcpt. Line")17-29
HasInvoicedNotReturnedQuantity(PurchRcptLine: Record "Purch. Rcpt. Line"): Booleannew in 24
IsUndoSalesShipmentLineForDropShipment(NewUndoSalesShptLineExists: Boolean)new in 28

Changes 3 in 28

List17181920212223242526272829
Procedures11
Events64917312
IsUndoSalesShipmentLineForDropShipment(NewUndoSalesShptLineExists: Boolean)new in 28
added
[IntegrationEvent] OnBeforeCheckPurchRcptLineFields(var PurchRcptLine: Record "Purch. Rcpt. Line"; var IsHandled: Boolean)new in 25
marked Pending, tag 28.0: This event is no longer used.
[IntegrationEvent] OnCodeOnBeforeFindPostedWhseRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var ShouldFindPostedWhseRcptLine: Boolean)new in 28
added

All 35 changes in 17-29