Codeunit 5817 Undo Posting Management

Base Application, Microsoft.Inventory

Source AL, 1,573 lines

src/Layers/W1/BaseApp/Inventory/UndoPostingManagement.Codeunit.allines 34 to 49 of 1,573, Copyright (c) Microsoft Corporation. MIT

codeunit 5817 "Undo Posting Management"{    Permissions = TableData "Reservation Entry" = i;    trigger OnRun()    begin    end;    var        ItemJnlPostLine: Codeunit "Item Jnl.-Post Line";#pragma warning disable AA0470        InsufficientBinContentErr: Label 'You cannot undo line %1 because there is not sufficient content in the receiving bins.';        PutAwayLinesCreatedErr: Label 'You cannot undo line %1 because warehouse put-away lines have already been created.';        ActivityLinesCreatedErr: Label 'You cannot undo line %1 because warehouse activity lines have already been created.';        DeleteRelatedErr: Label 'You must delete the related %1 before you undo line %2.';        ReceiptLinesCreatedErr: Label 'You cannot undo line %1 because warehouse receipt lines have already been created.';

All 1,573 lines

Events 58 in 29

[IntegrationEvent] OnAfterRevertPostedItemTracking(var TempReservEntry: Record "Reservation Entry" temporary)17-29
[IntegrationEvent] OnAfterUpdateSalesLine(var SalesLine: Record "Sales Line")17-29
[IntegrationEvent] OnAfterUpdatePurchline(var PurchLine: Record "Purchase Line")17-29
[IntegrationEvent] OnBeforePostItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; TempApplyToItemLedgEntry: Record "Item Ledger Entry" temporary)17-29
[IntegrationEvent] OnBeforePostItemJnlLineForJob(var ItemJournalLine: Record "Item Journal Line"; var IsHandled: Boolean)17-29
[IntegrationEvent] OnBeforeReapplyJobConsumption(ItemRcptEntryNo: Integer; var IsHandled: Boolean)17-29
[IntegrationEvent] OnBeforeTestAllTransactions(UndoType: Integer; UndoID: Code[20]; UndoLineNo: Integer; SourceType: Integer; SourceSubtype: Integer; SourceID: Code[20]; SourceRefNo: Integer)17-29

All 68 events in 17-29

Public procedures 26 in 29

TestSalesShptLine(SalesShptLine: Record "Sales Shipment Line")17-29
TestPurchRcptLine(PurchRcptLine: Record "Purch. Rcpt. Line")17-29
TestReturnShptLine(ReturnShptLine: Record "Return Shipment Line")17-29
TestReturnRcptLine(ReturnRcptLine: Record "Return Receipt Line")17-29
TestAsmHeader(PostedAsmHeader: Record "Posted Assembly Header")17-29
TestAsmLine(PostedAsmLine: Record "Posted Assembly Line")17-29

All 36 procedures in 17-29

Changes 15 in 28

List17181920212223242526272829
Procedures1131018
Events1586433927
TestServShptLine(ServShptLine: Record "Service Shipment Line")gone after 27
gone
UpdateServLine(ServLine: Record "Service Line"; UndoQty: Decimal; UndoQtyBase: Decimal; var TempUndoneItemLedgEntry: Record "Item Ledger Entry" temporary)gone after 27
gone
UpdateServLineCnsm(var ServLine: Record "Service Line"; UndoQty: Decimal; UndoQtyBase: Decimal; var TempUndoneItemLedgEntry: Record "Item Ledger Entry" temporary)gone after 27
gone
internal RunOnAfterUpdateServLine(var ServLine: Record "Service Line")25 to 27
gone
internal RunOnBeforeRevertPostedItemTrackingFromServiceLine(ServiceLine: Record "Service Line"; var TempUndoneItemLedgEntry: Record "Item Ledger Entry" temporary; var IsHandled: Boolean)25 to 27
gone
internal RunOnBeforeServiceLineReserveVerifyQuantity(ServiceLine: Record "Service Line"; xServiceLine: Record "Service Line"; var IsHandled: Boolean)25 to 27
gone

All 81 changes in 17-29