Codeunit 1324 Correct PstdPurchInv (Yes/No)

Base Application, Microsoft.Purchases.History

Source AL, 122 lines

src/Layers/W1/BaseApp/Purchases/History/CorrectPstdPurchInvYesNo.Codeunit.allines 10 to 25 of 122, Copyright (c) Microsoft Corporation. MIT

codeunit 1324 "Correct PstdPurchInv (Yes/No)"{    Permissions = TableData "Purch. Inv. Header" = rm,                  TableData "Purch. Cr. Memo Hdr." = rm;    TableNo = "Purch. Inv. Header";    trigger OnRun()    begin        CorrectInvoice(Rec);    end;    var        CorrectPostedInvoiceQst: Label 'The posted purchase invoice will be canceled, and a new version of the purchase invoice will be created so that you can make the correction.\ \Do you want to continue?';        CorrectPostedInvoiceFromSingleOrderQst: Label 'The invoice was posted from an order. The invoice will be cancelled, and the order will open so that you can make the correction.\ \Do you want to continue?';        CorrectPostedInvoiceFromDeletedOrderQst: Label 'The invoice was posted from an order. The order has been deleted, and the invoice will be cancelled. You can create a new invoice or order by using the Copy Document action.\ \Do you want to continue?';        CorrectPostedInvoiceFromMultipleOrderQst: Label 'The invoice was posted from multiple orders. It will now be cancelled, and you can make a correction manually in the original orders.\ \Do you want to continue?';

All 122 lines

Events 1 in 29

[IntegrationEvent] OnCancelPostedInvoiceOnBeforeShowPurchaseInvoice(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; PurchInvHeader: Record "Purch. Inv. Header")new in 24

All 2 events in 17-29

Public procedures 1 in 29

CorrectInvoice(var PurchInvHeader: Record "Purch. Inv. Header"): Boolean17-29

Changes 2 in 24

List17181920212223242526272829
Events12
[IntegrationEvent] OnCancelPostedInvoiceOnBeforeShowPurchaseInvoice(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)21 to 23
gone
[IntegrationEvent] OnCancelPostedInvoiceOnBeforeShowPurchaseInvoice(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; PurchInvHeader: Record "Purch. Inv. Header")new in 24
added

All 3 changes in 17-29