Codeunit 1323 Cancel PstdSalesInv (Yes/No)

Base Application, Microsoft.Sales.History

Source AL, 86 lines

src/Layers/W1/BaseApp/Sales/History/CancelPstdSalesInvYesNo.Codeunit.allines 12 to 27 of 86, Copyright (c) Microsoft Corporation. MIT

codeunit 1323 "Cancel PstdSalesInv (Yes/No)"{    Permissions = TableData "Sales Invoice Header" = rm,                  TableData "Sales Cr.Memo Header" = rm;    TableNo = "Sales Invoice Header";    trigger OnRun()    begin        CancelInvoice(Rec);    end;    var        CancelPostedInvoiceFromOrderQst: Label 'This invoice was posted from a sales order. To cancel it, a sales credit memo will be created and posted. The quantities from the original sales order will be restored, provided the sales order still exists.\ \Do you want to continue?';        CancelPostedInvoiceQst: Label 'The posted sales invoice will be canceled, and a sales 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 86 lines

Events 3 in 29

[IntegrationEvent] OnCancelInvoiceOnBeforePostedSalesCreditMemo(var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var IsHandled: Boolean)new in 21
[IntegrationEvent] OnCancelInvoiceOnBeforeTestCorrectInvoiceIsAllowed(var SalesInvoiceHeader: Record "Sales Invoice Header"; var IsHandled: Boolean)new in 22
[IntegrationEvent] OnCancelInvoiceOnBeforeConfirm(var SalesInvoiceHeader: Record "Sales Invoice Header"; var ConfirmQuestion: Text)new in 29

Public procedures 1 in 29

CancelInvoice(var SalesInvoiceHeader: Record "Sales Invoice Header"): Boolean17-29

Changes 1 in 29

List17181920212223242526272829
Events111
[IntegrationEvent] OnCancelInvoiceOnBeforeConfirm(var SalesInvoiceHeader: Record "Sales Invoice Header"; var ConfirmQuestion: Text)new in 29
added

All 3 changes in 17-29