Codeunit 8026 Process Usage Data Billing

Subscription Billing, Microsoft.SubscriptionBilling

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

OnRun line 25, trigger

  1. 28callsCode

Code line 32, local

  1. 39raisesOnBeforeProcessUsageDataBilling
  2. 42callsTable 8013 Usage Data Import SetStatus
  3. 44callsFilterUnprocessedUsageDataBilling
  4. 46callsTable 8006 Usage Data Billing ExcludeProcessingStatusError
  5. 51callsCalculateCustomerUsageDataBillingPrice
  6. 63callsProcessServiceCommitment
  7. 68callsSetProcessedUsageDataBillingToOk
  8. 69callsTable 8013 Usage Data Import UpdateProcessingStatus
  9. 73callsTable 8013 Usage Data Import SetErrorReason
  10. 74callsTable 8006 Usage Data Billing SetReason
  11. 76writesTable 8006 Usage Data Billing Modify
  12. 79callsTable 8013 Usage Data Import SetErrorReason
  13. 80writesTable 8013 Usage Data Import Modify
  14. 82raisesOnAfterProcessUsageDataBilling

SetProcessedUsageDataBillingToOk line 92, local

  1. 97callsFilterUnprocessedUsageDataBilling
  2. 98callsTable 8006 Usage Data Billing ExcludeProcessingStatusError
  3. 104validatesTable 8006 Usage Data Billing Processing Status
  4. 105writesTable 8006 Usage Data Billing Modify(true)
  5. 111writesTable 8006 Usage Data Billing ModifyAll
  6. 112writesTable 8006 Usage Data Billing ModifyAll
  7. 113writesTable 8006 Usage Data Billing ModifyAll

CalculateCustomerUsageDataBillingPrice line 116, local

  1. 127callsTable 8006 Usage Data Billing IsPartnerCustomer
  2. 129callsGetCustomerContractData
  3. 130callsSetCurrency
  4. 143callsCodeunit 8055 Sub. Contracts Item Management GetSalesPriceForItem
  5. 145callsCalculateUsageDataPrices
  6. 151callsCalculateUsageDataPrices
  7. 160raisesOnUsageBasedPricingElseCaseOnCalculateCustomerUsageDataBillingPriceIsHandled
  8. 175writesTable 8006 Usage Data Billing Modify(true)

ProcessServiceCommitment line 179, local

  1. 193raisesOnBeforeProcessSubscriptionLine
  2. 206callsFindUsageDataBilling
  3. 212callsCalculateSumsFromUsageDataBilling
  4. 216callsTable 8059 Subscription Line IsPartnerCustomer
  5. 229callsCalculateSumsFromUsageDataBilling
  6. 231callsTable 8059 Subscription Line IsPartnerCustomer
  7. 239raisesOnUsageBasedPricingElseCaseOnProcessSubscriptionLineIsHandled
  8. 246callsTable 8059 Subscription Line IsPartnerVendor
  9. 249callsUpdateServiceObjectQuantity
  10. 253callsUpdateServiceCommitment
  11. 256writesTable 8059 Subscription Line Modify
  12. 259raisesOnAfterProcessSubscriptionLine

CalculateSumsFromUsageDataBilling line 262, local

  1. 266callsTable 8006 Usage Data Billing FilterOnUsageDataImportAndServiceCommitment
  2. 269callsTable 8006 Usage Data Billing ExcludeProcessingStatusError

UpdateServiceObjectQuantity line 276, local

  1. 284callsTable 8057 Subscription Header SetHideValidationDialog
  2. 285validatesTable 8057 Subscription Header Quantity
  3. 286writesTable 8057 Subscription Header Modify

UpdateServiceCommitment line 289, local

  1. 302callsSetCurrency
  2. 304callsTable 8059 Subscription Line UnitPriceAndCostForPeriod
  3. 306callsSetRoundingPrecision
  4. 310callsTable 330 Currency Exchange Rate ExchangeAmtFCYToFCY
  5. 312validatesTable 8059 Subscription Line Price
  6. 313validatesTable 8059 Subscription Line Calculation Base Amount
  7. 318callsSetRoundingPrecision
  8. 324callsTable 330 Currency Exchange Rate ExchangeAmtFCYToLCY
  9. 324callsTable 330 Currency Exchange Rate ExchangeRate
  10. 332writesTable 8059 Subscription Line Modify

GetCustomerContractData line 335, local

  1. 339callsTable 8062 Cust. Sub. Contract Line GetServiceCommitment

SetCurrency line 342, local

  1. 347callsTable 4 Currency InitRoundingPrecision

FindUsageDataBilling line 350, local

  1. 356callsTable 8006 Usage Data Billing FilterOnUsageDataImportAndServiceCommitment
  2. 358callsTable 8006 Usage Data Billing ExcludeProcessingStatusError

CalculateUsageDataPrices line 363, local

  1. 370raisesOnBeforeCalculateUsageDataUnitPriceForPeriod
  2. 371callsTable 8059 Subscription Line UnitPriceForPeriod
  3. 372raisesOnAfterCalculateUsageDataUnitPriceForPeriod

SetRoundingPrecision line 376, internal

  1. 378callsCodeunit 8017 Date Time Management GetRoundingPrecision
  2. 378callsCodeunit 8017 Date Time Management GetNumberOfDecimals
  3. 380callsTable 4 Currency InitRoundingPrecision