---
title: "Codeunit 8062 Billing Proposal"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/
type: codeunit
id: 8062
name: "Billing Proposal"
app: "Subscription Billing"
namespace: Microsoft.SubscriptionBilling
versions: "26-29"
build: 29.0.54011.55644
countries: "W1, DE, US"
source: "https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/?v=28 https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/"
checked: 2026-11-20
changed: 2026-10-22
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 8062 Billing Proposal

JOP-AL, https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/

| | |
| --- | --- |
| App | Subscription Billing |
| Namespace | Microsoft.SubscriptionBilling |
| Versions | 26-29 |
| Minors | W1 26.0-29.0; DE 26.0-29.0; US 26.0-29.0, [every minor](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/editions.json) |
| Source file | Billing/Codeunits/BillingProposal.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| InitTempTable | (var TempBillingLine: Record "Billing Line" temporary; GroupBy: Enum "Contract Billing Grouping") | - | public | 26-29 | - | - |
| CreateBillingProposal | (BillingTemplateCode: Code[20]; BillingDate: Date; BillingToDate: Date) | - | public | 26-29 | - | - |
| CalculateBillingLineServiceAmount | (var BillingLine: Record "Billing Line") | Decimal | internal | 26-27 | - | - |
| CalculateNextBillingToDateForServiceCommitment | (ServiceCommitment: Record "Subscription Line"; BillingFromDate: Date) | Date | public | 26-29 | - | - |
| DeleteBillingProposal | (BillingTemplateCode: Code[20]) | - | internal | 26-29 | - | - |
| DeleteBillingLines | (var BillingLine: Record "Billing Line") | - | internal | 26-29 | - | - |
| UpdateBillingToDate | (var BillingLine: Record "Billing Line"; NewBillingToDate: Date) | - | internal | 26-29 | - | - |
| CreateBillingProposalFromContract | (ContractNo: Code[20]; BillingRhytmFilter: Text; ServicePartner: Enum "Service Partner") | - | internal | 26-29 | - | - |
| CreateBillingProposalForContract | (ServicePartner: Enum "Service Partner"; ContractNo: Code[20]; ContractLineFilter: Text; BillingRhythmFilter: Text; BillingDate: Date; BillingToDate: Date) | - | internal | 26-29 | - | - |
| CreateBillingProposalForPurchaseHeader | (ServicePartner: Enum "Service Partner"; var TempServiceCommitment: Record "Subscription Line" temporary; BillingDate: Date; BillingToDate: Date) | - | public | 26-29 | - | - |
| CreateBillingProposalForPurchaseLine | (ServicePartner: Enum "Service Partner"; var TempServiceCommitment: Record "Subscription Line" temporary; BillingDate: Date; BillingToDate: Date; var PurchaseLine: Record "Purchase Line") | - | public | 26-29 | - | - |
| CreatePurchaseLines | (PurchaseHeader: Record "Purchase Header") | - | public | 26-29 | - | - |
| CreateBillingDocument | (ServicePartner: Enum "Service Partner"; ContractNo: Code[20]; DocumentDate: Date; PostingDate: Date; PostDocument: Boolean; OpenDocument: Boolean) | Boolean | public | 26-29 | - | - |
| DeleteBillingDocuments | () | - | internal | 26 | - | - |
| DeleteBillingDocuments | (Selection: Option " ","All Documents","All Sales Invoices","All Sales Credit Memos","All Purchase Invoices","All Purchase Credit Memos"; ShowDialog: Boolean) | - | internal | 26 | - | - |
| CreateBillingProposal | (BillingTemplateCode: Code[20]; BillingDate: Date; BillingToDate: Date; AutomatedBilling: Boolean) | - | public | 27-29 | - | - |
| DisplayErrorIfNotAuthorizedToClearProposalOrDeleteDocuments | () | - | public | 27-29 | - | - |
| DeleteBillingDocuments | (BillingTemplateCode: Code[20]) | - | internal | 27-29 | - | - |
| RefreshGroupsInTempTable | (var TempBillingLine: Record "Billing Line" temporary; GroupBy: Enum "Contract Billing Grouping"; GroupKeys: List of [Code[20]]) | - | internal | 28-29 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterUpdateBillingLineFromSubscriptionLine | (var BillingLine: Record "Billing Line"; SubscriptionLine: Record "Subscription Line") | 26-29 | - | - |
| Integration event | OnBeforeProcessContractSubscriptionLines | (var SubscriptionLine: Record "Subscription Line"; BillingDate: Date; BillingToDate: Date; BillingRhythmFilterText: Text; BillingTemplate: Record "Billing Template") | 26-29 | - | - |
| Integration event | OnAfterProcessContractSubscriptionLines | (var SubscriptionLine: Record "Subscription Line"; BillingDate: Date; BillingToDate: Date; BillingRhythmFilterText: Text) | 26-29 | - | - |
| Integration event | OnBeforeCreateBillingProposalFromContract | (ContractNo: Code[20]; BillingRhytmFilter: Text; ServicePartner: Enum "Service Partner"; var IsHandled: Boolean) | 26-29 | - | - |
| Integration event | OnAfterCalculateNextBillingToDateForSubscriptionLine | (var NextBillingToDate: Date; SubscriptionLine: Record "Subscription Line"; BillingFromDate: Date) | 26-29 | - | - |
| Integration event | OnBeforeInsertBillingLineUpdateBillingLine | (var BillingLine: Record "Billing Line"; SubscriptionLine: Record "Subscription Line") | 26-29 | - | - |
| Integration event | OnAfterInitTempTable | (var TempBillingLine: Record "Billing Line" temporary; GroupBy: Enum "Contract Billing Grouping") | 26-29 | - | - |
| Integration event | OnBeforeUpdateNextBillingDateInUpdateBillingLine | (var SubscriptionLine: Record "Subscription Line") | 26-29 | - | - |
| Integration event | OnAfterSubscriptionLineGetInUpdateBillingToDate | (var SubscriptionLine: Record "Subscription Line") | 26-29 | - | - |
| Integration event | OnCheckSkipSubscriptionLineOnElse | (SubscriptionLine: Record "Subscription Line"; var SkipSubscriptionLine: Boolean) | 26-29 | - | - |
| Integration event | OnCreateBillingProposalBeforeApplyFilterToContract | (var FilterText: Text; var BillingTemplate: Record "Billing Template"; BillingDate: Date; BillingToDate: Date) | 26-29 | - | - |
| Integration event | OnBeforeCalculateBillingLineUnitAmountsAndServiceAmount | (var BillingLine: Record "Billing Line"; SubscriptionLine: Record "Subscription Line"; var IsHandled: Boolean) | 26-29 | - | - |
| Integration event | OnProcessSubscriptionLineOnAfterFilterUsageDataBilling | (var UsageDataBilling: Record "Usage Data Billing"; SubscriptionLine: Record "Subscription Line") | 28-29 | - | - |

## Source

Symbols: Microsoft.SubscriptionBilling.symbols.3099ffc7-4cf7-4df6-9b96-7e4bc2bb587c, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-11-20.
AL source 28: https://github.com/microsoft/BCApps, MIT, releases/28.x at 408a4cc8d3a4c54b60464cc14c964479facb9ba0.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
