Codeunit 8026 Process Usage Data Billing

Subscription Billing, Microsoft.SubscriptionBilling

Source AL, 441 lines

src/Apps/W1/Subscription Billing/App/Usage Based Billing/Codeunits/ProcessUsageDataBilling.Codeunit.allines 5 to 20 of 441, Copyright (c) Microsoft Corporation. MIT

codeunit 8026 "Process Usage Data Billing"{    TableNo = "Usage Data Import";    var        UsageDataImport: Record "Usage Data Import";        UsageDataSupplier: Record "Usage Data Supplier";        DateTimeManagement: Codeunit "Date Time Management";        ContractItemMgt: Codeunit "Sub. Contracts Item Management";        ProgressTracker: Codeunit "Sub. Billing Progress Tracker";        ProcessBillingLbl: Label 'Processing usage based billing...';        ImportEntryDetailLbl: Label 'Import Entry No. %1', Comment = '%1 = Usage Data Import Entry No.';        DoesNotExistErr: Label 'No data found for processing step %1.', Comment = '%1=Name of the processing step';        ProcessServiceCommitmentProcedureNameLbl: Label 'ProcessServiceCommitment', Locked = true;        UsageBasedPricingOptionNotImplementedErr: Label 'Unknown option %1 for %2.\\Object Type: %3 Object Name: %4, Procedure: %5', Comment = '%1=Format("Calculation Base Type"), %2 = Fieldcaption for "Calculation Base Type", %3 = Object Type, %4 = Object Name, %5 = Procedure Name';        CalculateCustomerUsageDataBillingPriceProcedureNameLbl: Label 'CalculateCustomerUsageDataBillingPrice', Locked = true;

All 441 lines

Events 8 in 29

[IntegrationEvent] OnBeforeProcessUsageDataBilling(UsageDataImport: Record "Usage Data Import")new in 26
[IntegrationEvent] OnAfterProcessUsageDataBilling(UsageDataImport: Record "Usage Data Import")new in 26
[IntegrationEvent] OnUsageBasedPricingElseCaseOnProcessSubscriptionLine(var UnitCost: Decimal; var NewServiceObjectQuantity: Decimal; var SubscriptionLine: Record "Subscription Line"; LastUsageDataBilling: Record "Usage Data Billing"; var IsHandled: Boolean)new in 26
[IntegrationEvent] OnUsageBasedPricingElseCaseOnCalculateCustomerUsageDataBillingPrice(var UnitPrice: Decimal; var Amount: Decimal; var UsageDataBilling: Record "Usage Data Billing"; CustomerSubscriptionContract: Record "Customer Subscription Contract"; var IsHandled: Boolean)new in 26
[IntegrationEvent] OnBeforeProcessSubscriptionLine(var SubscriptionLine: Record "Subscription Line")new in 26
[IntegrationEvent] OnAfterProcessSubscriptionLine(var SubscriptionLine: Record "Subscription Line")new in 26
[IntegrationEvent] OnBeforeCalculateUsageDataUnitPriceForPeriod(UnitPrice: Decimal; var ServiceCommitment: Record "Subscription Line"; var UsageDataBilling: Record "Usage Data Billing")new in 28

All 8 events

Changes 2 in 28

List17181920212223242526272829
Events2
[IntegrationEvent] OnBeforeCalculateUsageDataUnitPriceForPeriod(UnitPrice: Decimal; var ServiceCommitment: Record "Subscription Line"; var UsageDataBilling: Record "Usage Data Billing")new in 28
added
[IntegrationEvent] OnAfterCalculateUsageDataUnitPriceForPeriod(var UnitPrice: Decimal; var ServiceCommitment: Record "Subscription Line"; var UsageDataBilling: Record "Usage Data Billing")new in 28
added

All 2 changes in 26-29