Codeunit 1322 "Correct PstdSalesInv (Yes/No)"
Base Application · Microsoft.Sales.History
Across versions
- BC23-27present
- BC281 events added
- BC29-30unchanged
Neighbourhood 5 connected objects and pages
Base Application · Microsoft.Sales.History · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| TableNo | Sales Invoice Header |
| Permissions | TableData “Sales Invoice Header” = rm, TableData “Sales Cr.Memo Header” = rm |
Events published
OnCorrectInvoiceOnBeforeOpenSalesInvoicePage(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var SalesInvoiceHeader: Record "Sales Invoice Header")(integration)OnCorrectInvoiceOnBeforeOpenSalesOrderPage(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean)(integration)OnCancelPostedInvoiceAndOpenSalesOrderOnBeforeConfirm(var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesHeader: Record "Sales Header"; var ConfirmQuestion: Text)+ BC28 (integration)
Procedures
CorrectInvoice(var SalesInvoiceHeader: Record "Sales Invoice Header"): Boolean: Corrects the posted sales invoice after user confirmation by canceling it and opening the appropriate document for correction.
Plus 4 local procedures.
Triggers
OnRun
Relations
- runs on Table 112 “Sales Invoice Header”
Calls
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 1303 “Correct Posted Sales Invoice” (4 calls:
CancelPostedInvoice → CancelPostedInvoice,CancelPostedInvoiceAndOpenNewSalesInvoice → CancelPostedInvoiceCreateNewInvoice,CancelPostedInvoiceAndOpenSalesOrder → CancelPostedInvoice, …) - Codeunit 27 “Confirm Management” (3 calls:
CancelPostedInvoice → GetResponse,CancelPostedInvoiceAndOpenNewSalesInvoice → GetResponse,CancelPostedInvoiceAndOpenSalesOrder → GetResponse) - Page 42 “Sales Order” (1 call:
CancelPostedInvoiceAndOpenSalesOrder → (object)) - Page 43 “Sales Invoice” (1 call:
CancelPostedInvoiceAndOpenNewSalesInvoice → (object))
Recent changes
- 2026-07-15 #9452 [Extensibility Request] issue 30329: override confirmation text in CancelPostedInvoiceAndOpenSalesOrder (main, BC30, feature)
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Correct PstdSalesInv (Yes/No)"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.