Codeunit 1322 Correct PstdSalesInv (Yes/No)

Base Application, Microsoft.Sales.History

Source AL, 146 lines

src/Layers/W1/BaseApp/Sales/History/CorrectPstdSalesInvYesNo.Codeunit.allines 13 to 28 of 146, Copyright (c) Microsoft Corporation. MIT

codeunit 1322 "Correct PstdSalesInv (Yes/No)"{    Permissions = TableData "Sales Invoice Header" = rm,                  TableData "Sales Cr.Memo Header" = rm;    TableNo = "Sales Invoice Header";    trigger OnRun()    begin        CorrectInvoice(Rec);    end;    var        CorrectPostedInvoiceQst: Label 'The posted sales invoice will be canceled, and a new version of the sales invoice will automatically be created by the system 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 146 lines

Events 3 in 29

[IntegrationEvent] OnCorrectInvoiceOnBeforeOpenSalesOrderPage(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean)17-29
[IntegrationEvent] OnCorrectInvoiceOnBeforeOpenSalesInvoicePage(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var SalesInvoiceHeader: Record "Sales Invoice Header")new in 21
[IntegrationEvent] OnCancelPostedInvoiceAndOpenSalesOrderOnBeforeConfirm(var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesHeader: Record "Sales Header"; var ConfirmQuestion: Text)new in 28

All 4 events in 17-29

Public procedures 1 in 29

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

Changes 1 in 28

List17181920212223242526272829
Events21
[IntegrationEvent] OnCancelPostedInvoiceAndOpenSalesOrderOnBeforeConfirm(var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesHeader: Record "Sales Header"; var ConfirmQuestion: Text)new in 28
added

All 3 changes in 17-29