Codeunit 8024 Usage Based Doc. Type Conv.
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);Procedures 3
| Procedure | Versions |
|---|---|
| internal Convert | new in 26 |
| internal Convert | new in 26 |
| internal Convert | new in 26 |