Codeunit 8024 Usage Based Doc. Type Conv.

Subscription Billing, Microsoft.SubscriptionBilling

Source AL, 51 lines

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

codeunit 8024 "Usage Based Doc. Type Conv."{    Access = Internal;    var        ConversionNotAllowedErr: Label 'Conversion of option %1 to %2 is not possible.', Comment = '%1=Source Option, %2=Target Option';    internal procedure ConvertSalesDocTypeToUsageBasedBillingDocType(SalesDocumentType: Enum "Sales Document Type") UsageBasedBillingDocType: Enum "Usage Based Billing Doc. Type"    begin        case SalesDocumentType of            SalesDocumentType::Invoice:                UsageBasedBillingDocType := UsageBasedBillingDocType::Invoice;            SalesDocumentType::"Credit Memo":                UsageBasedBillingDocType := UsageBasedBillingDocType::"Credit Memo";            else                Error(ConversionNotAllowedErr, SalesDocumentType, UsageBasedBillingDocType);

All 51 lines

Procedures 3

ProcedureVersions
internal ConvertSalesDocTypeToUsageBasedBillingDocType(SalesDocumentType: Enum "Sales Document Type"): Enum "Usage Based Billing Doc. Type"new in 26
internal ConvertPurchaseDocTypeToUsageBasedBillingDocType(PurchaseDocumentType: Enum "Purchase Document Type"): Enum "Usage Based Billing Doc. Type"new in 26
internal ConvertRecurringBillingDocTypeToUsageBasedBillingDocType(RecurringBillingDocumentType: Enum "Rec. Billing Document Type"): Enum "Usage Based Billing Doc. Type"new in 26