Codeunit 1402 "Cancel Posted Purch. Cr. Memo"
Base Application · Microsoft.Purchases.History
Across versions
- BC23present
- BC241 procedures added
- BC251 events added
- BC26-27unchanged
- BC282 events added
- BC29-30unchanged
Neighbourhood 11 connected objects and pages
Base Application · Microsoft.Purchases.History · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| TableNo | Purch. Cr. Memo Hdr. |
| Permissions | TableData “Purch. Inv. Header” = rm, TableData “Purch. Cr. Memo Hdr.” = rm |
Events published
OnBeforeShowPostedPurchaseInvoice(var PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean)(integration)OnBeforeShowPurchaseInvoice(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)(integration)OnAfterTestCorrectCrMemoIsAllowed(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.")(integration)OnCancelPostedCrMemoOnBeforeTestCorrectCrMemoIsAllowed(var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr.")+ BC28 (integration)OnAfterCreateCopyDocument(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchaseHeader: Record "Purchase Header")(integration)OnBeforeTestIfCrMemoIsCorrectiveDoc(PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var IsHandled: Boolean)(integration)OnBeforeTestInventoryPostingSetup(PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var IsHandled: Boolean)(integration)OnBeforeTestGenPostingSetup(PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var IsHandled: Boolean)(integration)OnBeforeTestIfUnapplied(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var IsHandled: Boolean)(integration)OnCreateCopyDocumentOnBeforePurchHeaderInsert(var PurchHeader: Record "Purchase Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.")(integration)OnRunOnBeforeRunPurchPost(var PurchaseHeader: Record "Purchase Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.")(integration)OnTestIfAppliedCorrectlyBeforeCalcPartiallyApplied(var VendorLedgerEntry: Record "Vendor Ledger Entry")+ BC25 (integration)OnBeforeTestIfAnyFreeNumberSeries(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var IsHandled: Boolean)+ BC28 (integration)
Procedures
CancelPostedCrMemo(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."): BooleanTestCorrectCrMemoIsAllowed(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.")CheckGLAccount(AccountNo: Code[20]; PurchCrMemoLine: Record "Purch. Cr. Memo Line")
Plus 30 local procedures.
Triggers
OnRun
Relations
- runs on Table 124 “Purch. Cr. Memo Hdr.”
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 408 “DimensionManagement” (5 calls:
CheckGLAccount → CheckDimValuePosting,TestDimensionOnHeader → CheckDimIDComb,TestPurchLines → CheckDimIDComb, …) - Codeunit 6620 “Copy Document Mgt.” (2 calls:
CreateCopyDocument → CopyPurchDocForCrMemoCancelling,CreateCopyDocument → SetPropertiesForInvoiceCorrection) - Codeunit 11 “Gen. Jnl.-Check Line” (1 call:
TestIfPostingIsAllowed → DateNotAllowed) - Codeunit 227 “VendEntry-Apply Posted Entries” (1 call:
UnapplyEntries → PostUnApplyVendor) - Codeunit 90 “Purch.-Post” (1 call:
OnRun → (object)) - Page 138 “Posted Purchase Invoice” (1 call:
ShowPostedPurchaseInvoice → (object)) - Page 456 “No. Series” (1 call:
TryPeekNextNo → (object)) - Page 51 “Purchase Invoice” (1 call:
ShowPurchaseInvoice → (object))
Called by
- Codeunit 1401 “Cancel PstdPurchCrM (Yes/No)” (2 calls:
CancelCrMemo → CancelPostedCrMemo,CancelCrMemo → TestCorrectCrMemoIsAllowed) - Page 30083 “APIV2 - Purchase Credit Memos” (2 calls:
CancelCreditMemo → (object),CheckCreditMemoCanBeCancelled → TestCorrectCrMemoIsAllowed)
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 Posted Purch. Cr. Memo"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.