Codeunit 8023 Create Usage Data Billing

Subscription Billing, Microsoft.SubscriptionBilling

Source AL, 143 lines

src/Apps/W1/Subscription Billing/App/Usage Based Billing/Codeunits/CreateUsageDataBilling.Codeunit.allines 3 to 18 of 143, Copyright (c) Microsoft Corporation. MIT

codeunit 8023 "Create Usage Data Billing"{    TableNo = "Usage Data Import";    var        UsageDataProcessing: Interface "Usage Data Processing";    trigger OnRun()    begin        UsageDataImport.Copy(Rec);        Code();        Rec := UsageDataImport;    end;    local procedure Code()    var

All 143 lines

Events 4 in 29

[IntegrationEvent] OnAfterCreateUsageDataBillingFromTempSubscriptionLine(var TempSubscriptionLine: Record "Subscription Line"; var UsageDataBilling: Record "Usage Data Billing")new in 26
[IntegrationEvent] OnAfterCreateUsageDataBillingFromTempSubscriptionLines(var TempSubscriptionLine: Record "Subscription Line")new in 26
[IntegrationEvent] OnAfterCollectServiceCommitments(var TempSubscriptionLine: Record "Subscription Line" temporary; SubscriptionHeaderNo: Code[20]; SubscriptionLineEndDate: Date)new in 26
[IntegrationEvent] OnBeforInsertUsageDataBilling(var UsageDataBilling: Record "Usage Data Billing"; UsageDataGenericImportGlobal: Record "Usage Data Generic Import")new in 29

Changes 3 in 29

List17181920212223242526272829
Procedures212
Events1
internal CreateUsageDataBillingFromTempServiceCommitments(var TempServiceCommitment: Record "Subscription Line"; SupplierNo: Code[20]; UsageDataImportEntryNo: Integer; ServiceObjectNo: Code[20]; ProductID: Text[80]; ProductName: Text[100]; BillingPeriodStartDate: Date; BillingPeriodEndDate: Date; UnitCost: Decimal; NewQuantity: Decimal; CostAmount: Decimal; UnitPrice: Decimal; NewAmount: Decimal; CurrencyCode: Code[10])27 to 28
gone
internal CreateUsageDataBillingFromTempServiceCommitments(var TempServiceCommitment: Record "Subscription Line"; SupplierNo: Code[20]; UsageDataGenericImportGlobal: Record "Usage Data Generic Import")new in 29
added
[IntegrationEvent] OnBeforInsertUsageDataBilling(var UsageDataBilling: Record "Usage Data Billing"; UsageDataGenericImportGlobal: Record "Usage Data Generic Import")new in 29
added

All 6 changes in 26-29