Codeunit 8066 "Purchase Documents"
Subscription Billing · Microsoft.SubscriptionBilling
Across versions
- BC23-28not present
- BC29-30present
Subscription Billing · Microsoft.SubscriptionBilling · BC29-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| SingleInstance | true |
Events published
OnAfterInsertBillingLineArchiveOnMoveBillingLineToBillingLineArchive(var BillingLineArchive: Record "Billing Line Archive"; BillingLine: Record "Billing Line")(integration)
Event subscriptions
- PurchaseHeaderOnBeforeDeleteEvent subscribes to Table “Purchase Header” OnBeforeDeleteEvent
- PurchaseLineOnAfterDeleteEvent subscribes to Table “Purchase Line” OnBeforeDeleteEvent
- SkipInvoiceOrShipFlagCheckForSubscriptionBillingOnBeforeCheckHeaderPostingType subscribes to Codeunit “Purch.-Post” OnBeforeCheckHeaderPostingType
- SkipQuantityCheckForSubscriptionBillingOnCodeOnAfterPurchLineSetFilters subscribes to Codeunit “Release Purchase Document” OnCodeOnAfterPurchLineSetFilters
- ForceInvoiceCreationForZeroQtyDocumentOnBeforeCalcInvoice subscribes to Codeunit “Purch.-Post” OnBeforeCalcInvoice
- SetEverythingInvoicedForZeroQtyDocumentOnAfterSetEverythingInvoiced subscribes to Codeunit “Purch.-Post” OnPostPurchLineOnAfterSetEverythingInvoiced
- PurchasePostOnBeforePurchaseLineDeleteAll subscribes to Codeunit “Purch.-Post” OnBeforeDeleteAfterPosting
- TransferRecurringBillingMark subscribes to Codeunit “Gen. Jnl.-Post Line” OnBeforeVendLedgEntryInsert
- PurchInvLineCopyContractNoOnAfterInitFromPurchLine subscribes to Table “Purch. Inv. Line” OnAfterInitFromPurchLine
- PurchCrMemoLineCopyContractNoOnAfterInitFromPurchLine subscribes to Table “Purch. Cr. Memo Line” OnAfterInitFromPurchLine
Procedures
IsInvoiceCredited(DocumentNo: Code[20]): Boolean(internal)
Plus 7 local procedures.
Recent changes
- 2026-07-30 #8553 [Bug][SubscriptionBilling]: Performance: Billing document creation does not scale to large datasets (4M+ subscription lines) (main, BC30, performance)
Ask your agent
Procedure bodies are not stored here (D10). 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: "Purchase Documents"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.