---
title: "Codeunit 8062 Billing Proposal, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/points/
object: https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/
app: "Subscription Billing"
major: 29
source: 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, extension points 29

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

40 procedures and triggers with a step in src/Apps/W1/Subscription Billing/App/Billing/Codeunits/BillingProposal.Codeunit.al, in source order, read from the text, not from a run.

## InitTempTable

[Line 36](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L36).

- [46](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L46) writes [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) DeleteAll
- [48](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L48) calls `SetKeysForGrouping`
- [51](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L51) calls `UpdateGroupingLine`
- [54](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L54) writes [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) Insert
- [61](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L61) writes [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) Insert
- [65](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L65) raises `OnAfterInitTempTable`

## RefreshGroupsInTempTable

[Line 75](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L75), internal.

- [87](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L87) calls `SmallestTempBillingLineEntryNo`
- [89](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L89) calls `DeleteTempRowsForGroup`
- [90](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L90) calls `RebuildTempRowsForGroup`

## DeleteTempRowsForGroup

[Line 106](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L106), local.

- [115](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L115) writes [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) DeleteAll

## RebuildTempRowsForGroup

[Line 119](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L119), local.

- [125](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L125) calls `SetKeysForGrouping`
- [134](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L134) calls `UpdateGroupingLine`
- [137](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L137) writes [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) Insert
- [144](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L144) writes [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) Insert

## UpdateGroupingLine

[Line 168](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L168), local.

- [170](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L170) calls `GroupingLineShouldBeInserted`
- [178](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L178) calls `GetServiceAmount`
- [182](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L182) writes [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) Insert
- [187](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L187) writes [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) Modify
- [191](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L191) writes [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) Modify

## CreateBillingProposal

[Line 237](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L237).

- [252](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L252) calls `DeleteUpdateRequiredBillingLines`
- [255](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L255) calls [Table 8060 Billing Template](https://jonas-paprotka.de/ref/table/8060-billing-template/) `ReadFilter`
- [257](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L257) raises `OnCreateBillingProposalBeforeApplyFilterToContract`
- [269](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L269) calls `ProcessContractServiceCommitments`
- [285](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L285) calls `ProcessContractServiceCommitments`
- [302](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L302) runs [Page 9302 Sales Credit Memos](https://jonas-paprotka.de/ref/page/9302-sales-credit-memos/)
- [310](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L310) runs [Page 9309 Purchase Credit Memos](https://jonas-paprotka.de/ref/page/9309-purchase-credit-memos/)

## ProcessContractServiceCommitments

[Line 317](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L317), local.

- [331](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L331) raises `OnBeforeProcessContractSubscriptionLines`
- [334](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L334) calls `ProcessServiceCommitment`
- [336](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L336) raises `OnAfterProcessContractSubscriptionLines`
- [337](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L337) calls [Table 8060 Billing Template](https://jonas-paprotka.de/ref/table/8060-billing-template/) `IsPartnerCustomer`
- [338](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L338) calls `RecalculateHarmonizedBillingFieldsBasedOnNextBillingDate`

## ProcessServiceCommitment

[Line 341](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L341), local.

- [350](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L350) calls `FilterBillingLinesOnServiceCommitment`
- [361](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L361) calls [Table 8022 Contract Billing Err. Log](https://jonas-paprotka.de/ref/table/8022-contract-billing-err-log/) `InsertLogFromSubscriptionLine`
- [370](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L370) calls [Table 8022 Contract Billing Err. Log](https://jonas-paprotka.de/ref/table/8022-contract-billing-err-log/) `InsertLogFromSubscriptionLine`
- [381](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L381) calls [Table 8006 Usage Data Billing](https://jonas-paprotka.de/ref/table/8006-usage-data-billing/) `FilterOnServiceCommitment`
- [383](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L383) raises `OnProcessSubscriptionLineOnAfterFilterUsageDataBilling`
- [387](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L387) raises `OnCheckSkipSubscriptionLineOnElse`
- [390](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L390) calls `CalculateBillingPeriod`
- [391](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L391) calls [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) `InitNewBillingLine`
- [392](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L392) calls `UpdateBillingLine`

## DeleteUpdateRequiredBillingLines

[Line 402](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L402), local.

- [410](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L410) calls `DeleteBillingLinesForServiceObject`

## UpdateBillingLine

[Line 415](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L415), local.

- [425](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L425) calls `CalculateNextBillingToDateForServiceCommitment`
- [431](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L431) calls `UpdateBillingLineFromServiceCommitment`
- [432](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L432) calls `CalculateBillingLineUnitAmountsAndServiceAmount`
- [434](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L434) calls [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) `RebillingUsageDataExist`
- [436](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L436) raises `OnBeforeInsertBillingLineUpdateBillingLine`
- [437](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L437) writes [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) Insert
- [438](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L438) writes [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) Modify
- [440](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L440) calls `UpdateUsageDataBillingLineNoWhenBillingProposalIsCreated`
- [441](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L441) raises `OnBeforeUpdateNextBillingDateInUpdateBillingLine`
- [442](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L442) calls [Table 8059 Subscription Line](https://jonas-paprotka.de/ref/table/8059-subscription-line/) `UpdateNextBillingDate`
- [443](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L443) writes [Table 8059 Subscription Line](https://jonas-paprotka.de/ref/table/8059-subscription-line/) Modify
- [445](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L445) calls [Table 8059 Subscription Line](https://jonas-paprotka.de/ref/table/8059-subscription-line/) `CalculateNextToDate`
- [447](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L447) calls [Table 8059 Subscription Line](https://jonas-paprotka.de/ref/table/8059-subscription-line/) `GetSupplierChargeEndDateIfRebillingMetadataExist`
- [454](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L454) calls `CalculateNextBillingToDateForServiceCommitment`
- [462](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L462) calls [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) `InitNewBillingLine`

## SetBillingLineUnitPriceAndServiceAmountsFromUsageDataBilling

[Line 467](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L467), local.

- [474](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L474) calls [Table 8059 Subscription Line](https://jonas-paprotka.de/ref/table/8059-subscription-line/) `IsUsageBasedBillingValid`
- [476](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L476) calls [Table 8059 Subscription Line](https://jonas-paprotka.de/ref/table/8059-subscription-line/) `IsUsageDataBillingFound`
- [502](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L502) calls [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `Initialize`
- [504](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L504) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmtFCYToLCY`

## CalculateBillingLineUnitAmountsAndServiceAmount

[Line 508](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L508), local.

- [514](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L514) raises `OnBeforeCalculateBillingLineUnitAmountsAndServiceAmount`, IsHandled
- [517](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L517) calls `SetBillingLineUnitPriceAndServiceAmountsFromUsageDataBilling`
- [520](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L520) calls [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `Initialize`
- [522](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L522) calls [Table 8059 Subscription Line](https://jonas-paprotka.de/ref/table/8059-subscription-line/) `UnitPriceAndCostForPeriod`

## UpdateBillingLineFromServiceCommitment

[Line 531](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L531), local.

- [567](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L567) calls [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) `GetSign`
- [568](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L568) raises `OnAfterUpdateBillingLineFromSubscriptionLine`

## UpdateUsageDataBillingLineNoWhenBillingProposalIsCreated

[Line 571](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L571), local.

- [575](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L575) calls [Table 8059 Subscription Line](https://jonas-paprotka.de/ref/table/8059-subscription-line/) `IsUsageBasedBillingValid`
- [579](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L579) calls [Table 8059 Subscription Line](https://jonas-paprotka.de/ref/table/8059-subscription-line/) `SetUsageDataBillingFilters`
- [580](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L580) writes [Table 8006 Usage Data Billing](https://jonas-paprotka.de/ref/table/8006-usage-data-billing/) ModifyAll

## CalculateBillingPeriod

[Line 583](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L583), local.

- [608](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L608) calls `CalculateNextBillingToDateForServiceCommitment`
- [615](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L615) calls `CalculateNextBillingToDateForServiceCommitment`

## CalculateNextBillingToDateForServiceCommitment

[Line 619](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L619).

- [626](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L626) calls [Table 8059 Subscription Line](https://jonas-paprotka.de/ref/table/8059-subscription-line/) `CalculateNextToDate`
- [629](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L629) calls [Table 8059 Subscription Line](https://jonas-paprotka.de/ref/table/8059-subscription-line/) `GetSupplierChargeEndDateIfRebillingMetadataExist`
- [633](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L633) calls [Table 8059 Subscription Line](https://jonas-paprotka.de/ref/table/8059-subscription-line/) `GetUsageDataChargeEndDateCrossingPeriodEnd`
- [636](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L636) calls [Table 8059 Subscription Line](https://jonas-paprotka.de/ref/table/8059-subscription-line/) `GetUsageDataChargeEndDateCrossingPeriodEnd`
- [638](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L638) calls [Table 8059 Subscription Line](https://jonas-paprotka.de/ref/table/8059-subscription-line/) `IsPartnerCustomer`
- [640](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L640) calls [Table 8052 Customer Subscription Contract](https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/) `IsContractTypeSetAsHarmonizedBilling`
- [641](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L641) calls `HarmonizeNextBillingTo`
- [644](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L644) raises `OnAfterCalculateNextBillingToDateForSubscriptionLine`

## DisplayErrorIfNotAuthorizedToClearProposalOrDeleteDocuments

[Line 647](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L647).

- [655](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L655) calls [Table 91 User Setup](https://jonas-paprotka.de/ref/table/91-user-setup/) `AutoContractBillingAllowed`

## DeleteBillingProposal

[Line 659](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L659), internal.

- [669](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L669) calls `DisplayErrorIfNotAuthorizedToClearProposalOrDeleteDocuments`
- [690](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L690) writes [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) Delete(true)
- [702](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L702) writes [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) Delete(true)

## DeleteBillingLines

[Line 709](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L709), internal.

- [720](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L720) writes [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) Delete(true)

## DeleteBillingLinesForServiceObject

[Line 725](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L725), local.

- [735](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L735) writes [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) Delete(true)

## RecalculateHarmonizedBillingFieldsBasedOnNextBillingDate

[Line 755](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L755), local.

- [759](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L759) calls `BillingLinesForCustomerContractCreated`
- [764](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L764) calls [Table 8052 Customer Subscription Contract](https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/) `RecalculateHarmonizedBillingFieldsBasedOnNextBillingDate`

## UpdateBillingToDate

[Line 767](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L767), internal.

- [779](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L779) raises `OnAfterSubscriptionLineGetInUpdateBillingToDate`
- [782](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L782) calls [Table 8059 Subscription Line](https://jonas-paprotka.de/ref/table/8059-subscription-line/) `UpdateNextBillingDate`
- [783](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L783) calls `CalculateBillingPeriod`
- [784](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L784) calls `UpdateBillingLine`

## CreateBillingProposalFromContract

[Line 790](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L790), internal.

- [795](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L795) raises `OnBeforeCreateBillingProposalFromContract`, IsHandled
- [798](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L798) calls `BillingProposalCanBeCreatedForContract`
- [800](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L800) calls [Page 8001 Create Billing Document](https://jonas-paprotka.de/ref/page/8001-create-billing-document/) `SetContractData`

## ErrorIfBillingLinesForAllContractLinesExist

[Line 804](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L804), local.

- [810](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L810) calls `CheckIfBillingLineForCustomerContractLineDoesNotExist`
- [812](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L812) calls `CheckIfBillingLineForVendorContractLineDoesNotExist`

## CheckIfBillingLineWithUnpostedDocumentExists

[Line 819](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L819), local.

- [821](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L821) calls [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) `FilterBillingLineOnContract`

## CreateBillingProposalForContract

[Line 827](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L827), internal.

- [831](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L831) calls `CreateTempBillingTemplate`
- [832](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L832) calls `ProcessContractServiceCommitments`

## CreateBillingProposalForPurchaseHeader

[Line 835](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L835).

- [839](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L839) calls `CreateBillingProposalForPurchaseLine`

## CreateBillingProposalForPurchaseLine

[Line 842](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L842).

- [848](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L848) calls `CreateTempBillingTemplate`
- [851](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L851) calls `ProcessServiceCommitment`
- [853](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L853) calls `SyncPurchaseLineAndBillingLine`
- [856](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L856) writes [Table 8059 Subscription Line](https://jonas-paprotka.de/ref/table/8059-subscription-line/) Modify
- [859](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L859) calls `AddRecurringBillingFlagToExistingPurchaseHeader`

## CreatePurchaseLines

[Line 862](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L862).

- [870](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L870) calls [Codeunit 8060 Create Billing Documents](https://jonas-paprotka.de/ref/codeunit/8060-create-billing-documents/) `SetPurchaseHeaderFromExistingPurchaseDocument`
- [871](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L871) calls [Codeunit 8060 Create Billing Documents](https://jonas-paprotka.de/ref/codeunit/8060-create-billing-documents/) `SetSkipRequestPageSelection`
- [872](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L872) calls [Codeunit 8060 Create Billing Documents](https://jonas-paprotka.de/ref/codeunit/8060-create-billing-documents/) `SetHideProcessingFinishedMessage`
- [873](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L873) runs [Codeunit 8060 Create Billing Documents](https://jonas-paprotka.de/ref/codeunit/8060-create-billing-documents/)

## SyncPurchaseLineAndBillingLine

[Line 876](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L876), local.

- [880](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L880) calls [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) `GetBillingDocumentTypeFromPurchaseDocumentType`
- [883](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L883) writes [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) Modify
- [887](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L887) writes [Table 39 Purchase Line](https://jonas-paprotka.de/ref/table/39-purchase-line/) Modify

## AddRecurringBillingFlagToExistingPurchaseHeader

[Line 890](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L890), local.

- [895](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L895) calls [Table 38 Purchase Header](https://jonas-paprotka.de/ref/table/38-purchase-header/) `SetRecurringBilling`

## BillingProposalCanBeCreatedForContract

[Line 898](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L898), local.

- [903](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L903) calls `CheckIfBillingLineWithUnpostedDocumentExists`
- [904](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L904) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponse`
- [904](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L904) calls `GetCreditMemoExistsForBillingLineQst`
- [906](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L906) calls [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) `OpenDocumentCard`
- [910](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L910) calls `CheckIfBillingLineWithUnpostedDocumentExists`
- [911](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L911) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponse`
- [911](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L911) calls `GetBillingLineWithUnpostedInvoiceExistsQst`
- [913](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L913) calls [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) `OpenDocumentCard`
- [917](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L917) calls `ErrorIfBillingLinesForAllContractLinesExist`
- [918](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L918) calls `CheckIfBillingLineForContractExists`
- [919](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L919) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponse`

## CreateTempBillingTemplate

[Line 924](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L924), local.

- [928](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L928) writes [Table 8060 Billing Template](https://jonas-paprotka.de/ref/table/8060-billing-template/) Insert

## CreateBillingDocument

[Line 931](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L931).

- [939](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L939) calls [Codeunit 8060 Create Billing Documents](https://jonas-paprotka.de/ref/codeunit/8060-create-billing-documents/) `SetBillingGroupingPerContract`
- [940](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L940) calls [Codeunit 8060 Create Billing Documents](https://jonas-paprotka.de/ref/codeunit/8060-create-billing-documents/) `SetDocumentDataFromRequestPage`
- [941](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L941) calls [Codeunit 8060 Create Billing Documents](https://jonas-paprotka.de/ref/codeunit/8060-create-billing-documents/) `SetSkipRequestPageSelection`
- [942](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L942) runs [Codeunit 8060 Create Billing Documents](https://jonas-paprotka.de/ref/codeunit/8060-create-billing-documents/)
- [945](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L945) calls `FindBillingLineAndOpenDocumentCard`

## FindBillingLineAndOpenDocumentCard

[Line 949](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L949), local.

- [956](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L956) calls [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) `OpenDocumentCard`

## CheckIfBillingLineForCustomerContractLineDoesNotExist

[Line 979](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L979), local.

- [985](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L985) calls [Table 8062 Cust. Sub. Contract Line](https://jonas-paprotka.de/ref/table/8062-cust-sub-contract-line/) `FilterOnServiceObjectContractLineType`
- [988](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L988) calls [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) `FilterBillingLineOnContractLine`

## CheckIfBillingLineForVendorContractLineDoesNotExist

[Line 994](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L994), local.

- [1000](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L1000) calls [Table 8065 Vend. Sub. Contract Line](https://jonas-paprotka.de/ref/table/8065-vend-sub-contract-line/) `FilterOnServiceObjectContractLineType`
- [1003](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L1003) calls [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) `FilterBillingLineOnContractLine`

## CheckIfBillingLineForContractExists

[Line 1009](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L1009), local.

- [1013](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L1013) calls [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) `FilterBillingLineOnContract`

## DeleteBillingDocuments

[Line 1017](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L1017), internal.

- [1029](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L1029) calls `DisplayErrorIfNotAuthorizedToClearProposalOrDeleteDocuments`

## DeleteBillingDocuments

[Line 1094](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L1094), local.

- [1101](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L1101) calls [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) `GetSalesDocumentTypeFromBillingDocumentType`
- [1102](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L1102) writes [Table 36 Sales Header](https://jonas-paprotka.de/ref/table/36-sales-header/) Delete(true)
- [1104](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L1104) calls [Table 8061 Billing Line](https://jonas-paprotka.de/ref/table/8061-billing-line/) `GetPurchaseDocumentTypeFromBillingDocumentType`
- [1105](https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/source/#L1105) writes [Table 38 Purchase Header](https://jonas-paprotka.de/ref/table/38-purchase-header/) Delete(true)

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
