Codeunit 1325 "Cancel PstdPurchInv (Yes/No)"
Base Application · Microsoft.Purchases.History
Across versions
- BC23-27present
- BC281 events added
- BC291 procedures added
- BC301 procedures added
Neighbourhood 3 connected objects and pages
Base Application · Microsoft.Purchases.History · BC23-30 · source at 4e6a307c · facts from BC29
Properties
| Property | Value |
|---|---|
| TableNo | Purch. Inv. Header |
| Permissions | TableData “Purch. Inv. Header” = rm, TableData “Purch. Cr. Memo Hdr.” = rm |
Events published
OnBeforeShowPostedPurchaseCreditMemo(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var IsHandled: Boolean)(integration)OnCancelInvoiceOnBeforeTestCorrectInvoiceIsAllowed(var PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean)+ BC28 (integration)
Procedures
CancelInvoice(var PurchInvHeader: Record "Purch. Inv. Header"): Boolean
Plus 1 local procedures.
Triggers
OnRun
Relations
- runs on Table 122 “Purch. Inv. 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 1313 “Correct Posted Purch. Invoice” (2 calls:
CancelInvoice → CancelPostedInvoice,CancelInvoice → TestCorrectInvoiceIsAllowed) - Page 140 “Posted Purchase Credit Memo” (1 call:
CancelInvoice → (object))
Recent changes
- 2026-11-06 #11256 [main] Add setup option to restore Sales and Purchase Order quantities when posting returns (main, BC30, feature)
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Amend or cancel unpaid purchase invoices — possibly related: Documents canceling posted purchase invoices with automatic corrective credit memo creation. (model-linked)
Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).
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: "Cancel PstdPurchInv (Yes/No)"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.