Source AL, 1,174 lines
src/Apps/W1/Subscription Billing/App/Billing/Codeunits/BillingProposal.Codeunit.allines 10 to 25 of 1,174, Copyright (c) Microsoft Corporation. MIT
codeunit 8062 "Billing Proposal"{ var SalesHeaderGlobal: Record "Sales Header"; PurchaseHeaderGlobal: Record "Purchase Header"; ProgressTracker: Codeunit "Sub. Billing Progress Tracker"; LastContractNo: Code[20]; LastPartnerNo: Code[20]; CreatingProposalLbl: Label 'Creating billing proposal...'; ContractDetailLbl: Label 'Contract %1', Comment = '%1 = Subscription Contract No.'; BillingToChangeNotAllowedErr: Label 'A change of Billing to field from %1 to %2 for %3 and %4 is not allowed because the Subscription Line has already been calculated up to %5.', Comment = '%1: Old Billing To Date, %2: New Billing To Date, %3: Subscription Contract No., %4: Subscription Contract Line No., %5: Last Billing To Date'; NoBillingDateErr: Label 'Please enter the Billing Date.'; BillingToChangeNotAllowedDocNoExistsErr: Label 'Billing to field is not allowed to change because an unposted invoice or credit memo exists.'; CreditMemoPreventsProposalCreationLbl: Label 'The credit memos listed here must be posted or deleted before further billing lines can be created.'; CreditMemoExistsForSubscriptionLineTxt: Label 'There is a credit memo that needs to be posted or deleted before an invoice can be created. Subscription: %1, Subscription Line Entry No.: %2', Comment = '%1: Subscription Header No., %2: Subscription Line Entry No.'; BillingLineWithoutInvoiceExistsQst: Label 'Billing lines without invoice exists. Contract line with existing billing line will not be considered when creating an invoice from the contract. Do you want to continue?';
All 1,174 lines
Events 13 in 29
All 13 events
Public procedures 9 in 29
| InitTempTable(var TempBillingLine: Record "Billing Line" temporary; GroupBy: Enum "Contract Billing Grouping") | new in 26 |
| CreateBillingProposal(BillingTemplateCode: Code[20]; BillingDate: Date; BillingToDate: Date) | new in 26 |
| CalculateNextBillingToDateForServiceCommitment(ServiceCommitment: Record "Subscription Line"; BillingFromDate: Date): Date | new in 26 |
| CreateBillingProposalForPurchaseHeader(ServicePartner: Enum "Service Partner"; var TempServiceCommitment: Record "Subscription Line" temporary; BillingDate: Date; BillingToDate: Date) | new in 26changed in 28 |
| CreateBillingProposalForPurchaseLine(ServicePartner: Enum "Service Partner"; var TempServiceCommitment: Record "Subscription Line" temporary; BillingDate: Date; BillingToDate: Date; var PurchaseLine: Record "Purchase Line") | new in 26changed in 28 |
| CreatePurchaseLines(PurchaseHeader: Record "Purchase Header") | new in 26changed in 28 |
All 19 procedures in 26-29
Changes 6 in 28
| List | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
|---|
| Procedures | | | | | | | | | | | 5 | 5 | |
|---|
| Events | | | | | | | | | | | | 1 | |
|---|
| internal CalculateBillingLineServiceAmount(var BillingLine: Record "Billing Line"): Decimal | 26 to 27 |
| gone |
| CreateBillingProposalForPurchaseHeader(ServicePartner: Enum "Service Partner"; var TempServiceCommitment: Record "Subscription Line" temporary; BillingDate: Date; BillingToDate: Date) | new in 26changed in 28 |
| changed, was internal CreateBillingProposalForPurchaseHeader(ServicePartner: Enum "Service Partner"; var TempServiceCommitment: Record "Subscription Line" temporary; BillingDate: Date; BillingToDate: Date) |
| CreateBillingProposalForPurchaseLine(ServicePartner: Enum "Service Partner"; var TempServiceCommitment: Record "Subscription Line" temporary; BillingDate: Date; BillingToDate: Date; var PurchaseLine: Record "Purchase Line") | new in 26changed in 28 |
| changed, was internal CreateBillingProposalForPurchaseLine(ServicePartner: Enum "Service Partner"; var TempServiceCommitment: Record "Subscription Line" temporary; BillingDate: Date; BillingToDate: Date; var PurchaseLine: Record "Purchase Line") |
| CreatePurchaseLines(PurchaseHeader: Record "Purchase Header") | new in 26changed in 28 |
| changed, was internal CreatePurchaseLines(PurchaseHeader: Record "Purchase Header") |
| internal RefreshGroupsInTempTable(var TempBillingLine: Record "Billing Line" temporary; GroupBy: Enum "Contract Billing Grouping"; GroupKeys: List of [Code[20]]) | new in 28 |
| added |
| [IntegrationEvent] OnProcessSubscriptionLineOnAfterFilterUsageDataBilling(var UsageDataBilling: Record "Usage Data Billing"; SubscriptionLine: Record "Subscription Line") | new in 28 |
| added |
All 11 changes in 26-29