Codeunit 8066 Purchase Documents

Subscription Billing, Microsoft.SubscriptionBilling

Source AL, 282 lines

src/Apps/W1/Subscription Billing/App/Billing/Codeunits/PurchaseDocuments.Codeunit.allines 10 to 25 of 282, Copyright (c) Microsoft Corporation. MIT

codeunit 8066 "Purchase Documents"{    SingleInstance = true;    [EventSubscriber(ObjectType::Table, Database::"Purchase Header", OnBeforeDeleteEvent, '', false, false)]    local procedure PurchaseHeaderOnBeforeDeleteEvent(var Rec: Record "Purchase Header"; RunTrigger: Boolean)    var        PurchaseLine: Record "Purchase Line";        BillingLine: Record "Billing Line";    begin        if Rec.IsTemporary then            exit;        if not RunTrigger then            exit;        if not (Rec."Document Type" in [Enum::"Purchase Document Type"::Invoice, Enum::"Purchase Document Type"::"Credit Memo"]) then

All 282 lines

Events 1 in 29

[IntegrationEvent] OnAfterInsertBillingLineArchiveOnMoveBillingLineToBillingLineArchive(var BillingLineArchive: Record "Billing Line Archive"; BillingLine: Record "Billing Line")new in 26