Codeunit 8062 Billing Proposal

Subscription Billing, Microsoft.SubscriptionBilling

src/Apps/W1/Subscription Billing/App/Billing/Codeunits/BillingProposal.Codeunit.al40 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

InitTempTable line 36

  1. 46writesTable 8061 Billing Line DeleteAll
  2. 48callsSetKeysForGrouping
  3. 51callsUpdateGroupingLine
  4. 54writesTable 8061 Billing Line Insert
  5. 61writesTable 8061 Billing Line Insert
  6. 65raisesOnAfterInitTempTable

RefreshGroupsInTempTable line 75, internal

  1. 87callsSmallestTempBillingLineEntryNo
  2. 89callsDeleteTempRowsForGroup
  3. 90callsRebuildTempRowsForGroup

DeleteTempRowsForGroup line 106, local

  1. 115writesTable 8061 Billing Line DeleteAll

RebuildTempRowsForGroup line 119, local

  1. 125callsSetKeysForGrouping
  2. 134callsUpdateGroupingLine
  3. 137writesTable 8061 Billing Line Insert
  4. 144writesTable 8061 Billing Line Insert

UpdateGroupingLine line 168, local

  1. 170callsGroupingLineShouldBeInserted
  2. 178callsGetServiceAmount
  3. 182writesTable 8061 Billing Line Insert
  4. 187writesTable 8061 Billing Line Modify
  5. 191writesTable 8061 Billing Line Modify

CreateBillingProposal line 237

  1. 252callsDeleteUpdateRequiredBillingLines
  2. 255callsTable 8060 Billing Template ReadFilter
  3. 257raisesOnCreateBillingProposalBeforeApplyFilterToContract
  4. 269callsProcessContractServiceCommitments
  5. 285callsProcessContractServiceCommitments
  6. 302runsPage 9302 Sales Credit Memos
  7. 310runsPage 9309 Purchase Credit Memos

ProcessContractServiceCommitments line 317, local

  1. 331raisesOnBeforeProcessContractSubscriptionLines
  2. 334callsProcessServiceCommitment
  3. 336raisesOnAfterProcessContractSubscriptionLines
  4. 337callsTable 8060 Billing Template IsPartnerCustomer
  5. 338callsRecalculateHarmonizedBillingFieldsBasedOnNextBillingDate

ProcessServiceCommitment line 341, local

  1. 350callsFilterBillingLinesOnServiceCommitment
  2. 361callsTable 8022 Contract Billing Err. Log InsertLogFromSubscriptionLine
  3. 370callsTable 8022 Contract Billing Err. Log InsertLogFromSubscriptionLine
  4. 381callsTable 8006 Usage Data Billing FilterOnServiceCommitment
  5. 383raisesOnProcessSubscriptionLineOnAfterFilterUsageDataBilling
  6. 387raisesOnCheckSkipSubscriptionLineOnElse
  7. 390callsCalculateBillingPeriod
  8. 391callsTable 8061 Billing Line InitNewBillingLine
  9. 392callsUpdateBillingLine

DeleteUpdateRequiredBillingLines line 402, local

  1. 410callsDeleteBillingLinesForServiceObject

UpdateBillingLine line 415, local

  1. 425callsCalculateNextBillingToDateForServiceCommitment
  2. 431callsUpdateBillingLineFromServiceCommitment
  3. 432callsCalculateBillingLineUnitAmountsAndServiceAmount
  4. 434callsTable 8061 Billing Line RebillingUsageDataExist
  5. 436raisesOnBeforeInsertBillingLineUpdateBillingLine
  6. 437writesTable 8061 Billing Line Insert
  7. 438writesTable 8061 Billing Line Modify
  8. 440callsUpdateUsageDataBillingLineNoWhenBillingProposalIsCreated
  9. 441raisesOnBeforeUpdateNextBillingDateInUpdateBillingLine
  10. 442callsTable 8059 Subscription Line UpdateNextBillingDate
  11. 443writesTable 8059 Subscription Line Modify
  12. 445callsTable 8059 Subscription Line CalculateNextToDate
  13. 447callsTable 8059 Subscription Line GetSupplierChargeEndDateIfRebillingMetadataExist
  14. 454callsCalculateNextBillingToDateForServiceCommitment
  15. 462callsTable 8061 Billing Line InitNewBillingLine

SetBillingLineUnitPriceAndServiceAmountsFromUsageDataBilling line 467, local

  1. 474callsTable 8059 Subscription Line IsUsageBasedBillingValid
  2. 476callsTable 8059 Subscription Line IsUsageDataBillingFound
  3. 502callsTable 4 Currency Initialize
  4. 504callsTable 330 Currency Exchange Rate ExchangeAmtFCYToLCY

CalculateBillingLineUnitAmountsAndServiceAmount line 508, local

  1. 514raisesOnBeforeCalculateBillingLineUnitAmountsAndServiceAmountIsHandled
  2. 517callsSetBillingLineUnitPriceAndServiceAmountsFromUsageDataBilling
  3. 520callsTable 4 Currency Initialize
  4. 522callsTable 8059 Subscription Line UnitPriceAndCostForPeriod

UpdateBillingLineFromServiceCommitment line 531, local

  1. 567callsTable 8061 Billing Line GetSign
  2. 568raisesOnAfterUpdateBillingLineFromSubscriptionLine

UpdateUsageDataBillingLineNoWhenBillingProposalIsCreated line 571, local

  1. 575callsTable 8059 Subscription Line IsUsageBasedBillingValid
  2. 579callsTable 8059 Subscription Line SetUsageDataBillingFilters
  3. 580writesTable 8006 Usage Data Billing ModifyAll

CalculateBillingPeriod line 583, local

  1. 608callsCalculateNextBillingToDateForServiceCommitment
  2. 615callsCalculateNextBillingToDateForServiceCommitment

CalculateNextBillingToDateForServiceCommitment line 619

  1. 626callsTable 8059 Subscription Line CalculateNextToDate
  2. 629callsTable 8059 Subscription Line GetSupplierChargeEndDateIfRebillingMetadataExist
  3. 633callsTable 8059 Subscription Line GetUsageDataChargeEndDateCrossingPeriodEnd
  4. 636callsTable 8059 Subscription Line GetUsageDataChargeEndDateCrossingPeriodEnd
  5. 638callsTable 8059 Subscription Line IsPartnerCustomer
  6. 640callsTable 8052 Customer Subscription Contract IsContractTypeSetAsHarmonizedBilling
  7. 641callsHarmonizeNextBillingTo
  8. 644raisesOnAfterCalculateNextBillingToDateForSubscriptionLine

DisplayErrorIfNotAuthorizedToClearProposalOrDeleteDocuments line 647

  1. 655callsTable 91 User Setup AutoContractBillingAllowed

DeleteBillingProposal line 659, internal

  1. 669callsDisplayErrorIfNotAuthorizedToClearProposalOrDeleteDocuments
  2. 690writesTable 8061 Billing Line Delete(true)
  3. 702writesTable 8061 Billing Line Delete(true)

DeleteBillingLines line 709, internal

  1. 720writesTable 8061 Billing Line Delete(true)

DeleteBillingLinesForServiceObject line 725, local

  1. 735writesTable 8061 Billing Line Delete(true)

RecalculateHarmonizedBillingFieldsBasedOnNextBillingDate line 755, local

  1. 759callsBillingLinesForCustomerContractCreated
  2. 764callsTable 8052 Customer Subscription Contract RecalculateHarmonizedBillingFieldsBasedOnNextBillingDate

UpdateBillingToDate line 767, internal

  1. 779raisesOnAfterSubscriptionLineGetInUpdateBillingToDate
  2. 782callsTable 8059 Subscription Line UpdateNextBillingDate
  3. 783callsCalculateBillingPeriod
  4. 784callsUpdateBillingLine

CreateBillingProposalFromContract line 790, internal

  1. 795raisesOnBeforeCreateBillingProposalFromContractIsHandled
  2. 798callsBillingProposalCanBeCreatedForContract
  3. 800callsPage 8001 Create Billing Document SetContractData

ErrorIfBillingLinesForAllContractLinesExist line 804, local

  1. 810callsCheckIfBillingLineForCustomerContractLineDoesNotExist
  2. 812callsCheckIfBillingLineForVendorContractLineDoesNotExist

CheckIfBillingLineWithUnpostedDocumentExists line 819, local

  1. 821callsTable 8061 Billing Line FilterBillingLineOnContract

CreateBillingProposalForContract line 827, internal

  1. 831callsCreateTempBillingTemplate
  2. 832callsProcessContractServiceCommitments

CreateBillingProposalForPurchaseHeader line 835

  1. 839callsCreateBillingProposalForPurchaseLine

CreateBillingProposalForPurchaseLine line 842

  1. 848callsCreateTempBillingTemplate
  2. 851callsProcessServiceCommitment
  3. 853callsSyncPurchaseLineAndBillingLine
  4. 856writesTable 8059 Subscription Line Modify
  5. 859callsAddRecurringBillingFlagToExistingPurchaseHeader

CreatePurchaseLines line 862

  1. 870callsCodeunit 8060 Create Billing Documents SetPurchaseHeaderFromExistingPurchaseDocument
  2. 871callsCodeunit 8060 Create Billing Documents SetSkipRequestPageSelection
  3. 872callsCodeunit 8060 Create Billing Documents SetHideProcessingFinishedMessage
  4. 873runsCodeunit 8060 Create Billing Documents

SyncPurchaseLineAndBillingLine line 876, local

  1. 880callsTable 8061 Billing Line GetBillingDocumentTypeFromPurchaseDocumentType
  2. 883writesTable 8061 Billing Line Modify
  3. 887writesTable 39 Purchase Line Modify

AddRecurringBillingFlagToExistingPurchaseHeader line 890, local

  1. 895callsTable 38 Purchase Header SetRecurringBilling

BillingProposalCanBeCreatedForContract line 898, local

  1. 903callsCheckIfBillingLineWithUnpostedDocumentExists
  2. 904callsCodeunit 27 Confirm Management GetResponse
  3. 904callsGetCreditMemoExistsForBillingLineQst
  4. 906callsTable 8061 Billing Line OpenDocumentCard
  5. 910callsCheckIfBillingLineWithUnpostedDocumentExists
  6. 911callsCodeunit 27 Confirm Management GetResponse
  7. 911callsGetBillingLineWithUnpostedInvoiceExistsQst
  8. 913callsTable 8061 Billing Line OpenDocumentCard
  9. 917callsErrorIfBillingLinesForAllContractLinesExist
  10. 918callsCheckIfBillingLineForContractExists
  11. 919callsCodeunit 27 Confirm Management GetResponse

CreateTempBillingTemplate line 924, local

  1. 928writesTable 8060 Billing Template Insert

CreateBillingDocument line 931

  1. 939callsCodeunit 8060 Create Billing Documents SetBillingGroupingPerContract
  2. 940callsCodeunit 8060 Create Billing Documents SetDocumentDataFromRequestPage
  3. 941callsCodeunit 8060 Create Billing Documents SetSkipRequestPageSelection
  4. 942runsCodeunit 8060 Create Billing Documents
  5. 945callsFindBillingLineAndOpenDocumentCard

FindBillingLineAndOpenDocumentCard line 949, local

  1. 956callsTable 8061 Billing Line OpenDocumentCard

CheckIfBillingLineForCustomerContractLineDoesNotExist line 979, local

  1. 985callsTable 8062 Cust. Sub. Contract Line FilterOnServiceObjectContractLineType
  2. 988callsTable 8061 Billing Line FilterBillingLineOnContractLine

CheckIfBillingLineForVendorContractLineDoesNotExist line 994, local

  1. 1000callsTable 8065 Vend. Sub. Contract Line FilterOnServiceObjectContractLineType
  2. 1003callsTable 8061 Billing Line FilterBillingLineOnContractLine

CheckIfBillingLineForContractExists line 1009, local

  1. 1013callsTable 8061 Billing Line FilterBillingLineOnContract

DeleteBillingDocuments line 1017, internal

  1. 1029callsDisplayErrorIfNotAuthorizedToClearProposalOrDeleteDocuments

DeleteBillingDocuments line 1094, local

  1. 1101callsTable 8061 Billing Line GetSalesDocumentTypeFromBillingDocumentType
  2. 1102writesTable 36 Sales Header Delete(true)
  3. 1104callsTable 8061 Billing Line GetPurchaseDocumentTypeFromBillingDocumentType
  4. 1105writesTable 38 Purchase Header Delete(true)