Codeunit 1401 Cancel PstdPurchCrM (Yes/No)

Base Application, Microsoft.Purchases.History

Source AL, 60 lines

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

codeunit 1401 "Cancel PstdPurchCrM (Yes/No)"{    Permissions = TableData "Purch. Inv. Header" = rm,                  TableData "Purch. Cr. Memo Hdr." = rm;    TableNo = "Purch. Cr. Memo Hdr.";    trigger OnRun()    begin        CancelCrMemo(Rec);    end;    var        CancelPostedCrMemoQst: Label 'The posted purchase credit memo will be canceled, and a purchase invoice will be created and posted, which reverses the posted purchase credit memo. Do you want to continue?';        OpenPostedInvQst: Label 'The invoice was successfully created. Do you want to open the posted invoice?';    local procedure CancelCrMemo(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."): Boolean

All 60 lines

Events 2 in 29

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

Changes 1 in 28

List17181920212223242526272829
Events11
[IntegrationEvent] OnCancelCrMemoOnBeforeTestCorrectCrMemoIsAllowed(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var IsHandled: Boolean)new in 28
added

All 2 changes in 17-29