Codeunit 1325 Cancel PstdPurchInv (Yes/No)

Base Application, Microsoft.Purchases.History

Source AL, 69 lines

src/Layers/W1/BaseApp/Purchases/History/CancelPstdPurchInvYesNo.Codeunit.allines 9 to 24 of 69, Copyright (c) Microsoft Corporation. MIT

codeunit 1325 "Cancel PstdPurchInv (Yes/No)"{    Permissions = TableData "Purch. Inv. Header" = rm,                  TableData "Purch. Cr. Memo Hdr." = rm;    TableNo = "Purch. Inv. Header";    trigger OnRun()    begin        CancelInvoice(Rec);    end;    var        CancelPostedInvoiceFromOrderQst: Label 'This invoice was posted from a purchase order. To cancel it, a purchase credit memo will be created and posted. The quantities from the original purchase order will be restored, provided the purchase order still exists.\ \Do you want to continue?';        CancelPostedInvoiceQst: Label 'The posted purchase invoice will be canceled, and a purchase credit memo will be created and posted.\ \Do you want to continue?';        OpenPostedCreditMemoQst: Label 'A credit memo was successfully created. Do you want to open the posted credit memo?';

All 69 lines

Events 2 in 29

[IntegrationEvent] OnBeforeShowPostedPurchaseCreditMemo(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var IsHandled: Boolean)new in 21
[IntegrationEvent] OnCancelInvoiceOnBeforeTestCorrectInvoiceIsAllowed(var PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean)new in 28

Public procedures 1 in 29

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

Changes 1 in 28

List17181920212223242526272829
Events11
[IntegrationEvent] OnCancelInvoiceOnBeforeTestCorrectInvoiceIsAllowed(var PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean)new in 28
added

All 2 changes in 17-29