Codeunit 8029 Usage Based Billing Mgmt.

Subscription Billing, Microsoft.SubscriptionBilling

Source AL, 260 lines

src/Apps/W1/Subscription Billing/App/Usage Based Billing/Codeunits/UsageBasedBillingMgmt.Codeunit.allines 6 to 21 of 260, Copyright (c) Microsoft Corporation. MIT

codeunit 8029 "Usage Based Billing Mgmt."{    var        ExtendContractMgt: Codeunit "Extend Sub. Contract Mgt.";        ConfirmManagement: Codeunit "Confirm Management";        NoMatchingServiceCommitmentFoundErr: Label 'No %1 was found that matches the following criteria: %2', Comment = '%1 = Subscription Line, %2 = Subscription Line Filters';        NoContractFoundErr: Label 'No %1 was found for Subscription: %2.', Comment = '%1 = Customer/Vendor Contract, %2 = Subscription No.';        FieldMustBeFilledErr: Label 'The Field "%1" must contain a value.', Comment = '%1 = Field name';        ProgressLbl: Label '#1###################################### \Progress @2@@@@@@@@@@@@@@@@@@', Comment = '%1 = Progress, %2 = Table Name';        ProcessingInterruptedTxt: Label 'Processing interrupted.';        ItemBlockedErr: Label 'You cannot connect Supplier Subscription to Subscription %1 because Item %2 from Subscription is blocked.', Comment = '%1 = Subscription No., %2 = Item No.';        MultipleServiceObjectsQst: Label 'Subscription %1 is to be connected with the entry %2 and other subscriptions. Continue?', Comment = '%1 = Subscription No., %2 = Usage Data Subscription Entry No.';        NoReferenceCommitmentFoundErr: Label 'For Item "%1" no Subscription Line with %2 was found.', Comment = '%1 = Item No., %2 = Usage Based Billing flag';        DisconnectFromSubscriptionQst: Label 'Do you want to disconnect from the subscription?';        SubscriptionCannotBeConnectedErr: Label 'The Subscription cannot be linked via "Existing Subscription Lines" because the Subscription Lines are not charged based on usage. Instead, select Link via=New Subscription Lines.';

All 260 lines

Public procedures 3 in 29

ConnectSubscriptionsToServiceObjects(var UsageDataSubscription: Record "Usage Data Supp. Subscription")new in 26
DisconnectServiceCommitmentFromSubscription(var ServiceCommitment: Record "Subscription Line")new in 26
ConnectSubscriptionToServiceObjectWithNewServiceCommitments(var UsageDataSubscription: Record "Usage Data Supp. Subscription")new in 26

All 4 procedures in 26-29