Codeunit 850 Cash Flow Forecast Handler

Base Application, Microsoft.CashFlow.Forecast

src/Layers/W1/BaseApp/CashFlow/Forecast/CashFlowForecastHandler.Codeunit.al23 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

CalculateForecast line 59

  1. 61callsTable 700 Error Message ClearLog
  2. 63callsInitialize
  3. 64callsTable 700 Error Message CopyFromTemp
  4. 69callsCalculateVATAndLedgerForecast

CalculateVATAndLedgerForecast line 74, local

  1. 80callsPrepareForecast
  2. 81callsTable 700 Error Message CopyFromTemp
  3. 86callsCodeunit 2000 Time Series Management SetPreparedData
  4. 87callsCodeunit 2000 Time Series Management Forecast
  5. 88callsCodeunit 2000 Time Series Management GetForecast
  6. 91callsClearCashFlowAzureAIBuffer
  7. 92callsCashFlowAzureAIBufferFill
  8. 93callsTable 700 Error Message CopyFromTemp

CalculatePostedSalesDocsSumAmountInPeriod line 96, local

  1. 104callsGetPeriodEndingDate

CalculatePostedPurchDocsSumAmountInPeriod line 114, local

  1. 122callsGetPeriodEndingDate

CalculatePostedDocsSumTaxInPeriod line 132, local

  1. 142callsTable 843 Cash Flow Setup GetTaxPeriodStartEndDates

CalculateNotPostedSalesOrderSumAmountInPeriod line 156, local

  1. 168callsTable 843 Cash Flow Setup GetTaxPeriodStartEndDates
  2. 172callsGetPeriodEndingDate
  3. 179callsCodeunit 841 Cash Flow Management GetTaxAmountFromSalesOrder
  4. 181callsCodeunit 841 Cash Flow Management GetTotalAmountFromSalesOrder

CalculateNotPostedPurchOrderSumAmountInPeriod line 189, local

  1. 202callsTable 843 Cash Flow Setup GetTaxPeriodStartEndDates
  2. 206callsGetPeriodEndingDate
  3. 213callsCodeunit 841 Cash Flow Management GetTaxAmountFromPurchaseOrder
  4. 215callsCodeunit 841 Cash Flow Management GetTotalAmountFromPurchaseOrder

PrepareForecast line 223

  1. 237callsSetFiltersOnRecords
  2. 239callsCodeunit 2000 Time Series Management HasMinimumHistoricalData
  3. 246raisesOnAfterHasMinimumHistoricalData
  4. 254callsTable 700 Error Message LogSimpleMessage
  5. 262callsPrepareData
  6. 271raisesOnAfterPrepareSalesHistoryData
  7. 272callsAppendRecords
  8. 275callsPrepareData
  9. 284raisesOnAfterPreparePurchHistoryData
  10. 285callsAppendRecords
  11. 290callsTimeSeriesPrepareAndGetData
  12. 297callsAppendRecords
  13. 299writesTable 2000 Time Series Buffer DeleteAll
  14. 302callsTimeSeriesPrepareAndGetData
  15. 309callsAppendRecords

CashFlowAzureAIBufferFill line 314

  1. 324callsNewCashFlowAzureAIBufferRecord
  2. 335callsAggregateTaxRecordsToTaxablePeriod
  3. 336callsAggregateTaxRecordsToTaxablePeriod
  4. 342callsTable 700 Error Message LogSimpleMessage
  5. 345callsIsAmountValid
  6. 349callsNewCashFlowAzureAIBufferRecord
  7. 363callsNewCorrectionRecord
  8. 364callsNewCorrectionRecord
  9. 368callsNewCorrectionRecord
  10. 369callsNewCorrectionRecord
  11. 373callsNewCorrectionRecord
  12. 374callsNewCorrectionRecord
  13. 378callsNewCorrectionRecord
  14. 379callsNewCorrectionRecord

ClearCashFlowAzureAIBuffer line 386, local

  1. 391writesTable 852 Cash Flow Azure AI Buffer DeleteAll

PrepareData line 409, local

  1. 413callsTimeSeriesPrepareAndGetData
  2. 422writesTable 2000 Time Series Buffer Modify

TimeSeriesPrepareAndGetData line 426, local

  1. 428callsCodeunit 2000 Time Series Management PrepareData
  2. 437callsCodeunit 2000 Time Series Management GetPreparedData

AppendRecords line 440, local

  1. 445validatesTable 2000 Time Series Buffer Value
  2. 446writesTable 2000 Time Series Buffer Modify
  3. 448validatesTable 2000 Time Series Buffer Value
  4. 449validatesTable 2000 Time Series Buffer Period Start Date
  5. 450validatesTable 2000 Time Series Buffer Period No.
  6. 451validatesTable 2000 Time Series Buffer Group ID
  7. 452writesTable 2000 Time Series Buffer Insert

Initialize line 458

  1. 475callsTable 700 Error Message SetContext
  2. 477callsTable 700 Error Message LogMessage
  3. 485callsTable 843 Cash Flow Setup GetMLCredentials
  4. 486callsTable 700 Error Message LogMessage
  5. 496callsTable 843 Cash Flow Setup IsAPIUserDefined
  6. 497callsCodeunit 2006 Azure AI Usage IsLimitReached
  7. 498callsTable 700 Error Message LogSimpleMessage
  8. 503callsCodeunit 2000 Time Series Management Initialize
  9. 504callsTable 700 Error Message LogSimpleMessage
  10. 508callsCodeunit 2000 Time Series Management SetMaximumHistoricalPeriods
  11. 509callsCodeunit 2000 Time Series Management GetState
  12. 513callsGetForecastStartDate

NewCashFlowAzureAIBufferRecord line 533, local

  1. 538validatesTable 852 Cash Flow Azure AI Buffer Group Id
  2. 539validatesTable 852 Cash Flow Azure AI Buffer Amount
  3. 540validatesTable 852 Cash Flow Azure AI Buffer Delta %
  4. 541validatesTable 852 Cash Flow Azure AI Buffer Delta
  5. 542validatesTable 852 Cash Flow Azure AI Buffer Type
  6. 543validatesTable 852 Cash Flow Azure AI Buffer Period Start
  7. 544validatesTable 852 Cash Flow Azure AI Buffer Period Type
  8. 545validatesTable 852 Cash Flow Azure AI Buffer Period No.
  9. 546writesTable 852 Cash Flow Azure AI Buffer Insert

NewCorrectionRecord line 549, local

  1. 557callsGetCorrectionAmount
  2. 569callsConvertValueBasedOnType
  3. 572validatesTable 852 Cash Flow Azure AI Buffer Group Id
  4. 573validatesTable 852 Cash Flow Azure AI Buffer Amount
  5. 574validatesTable 852 Cash Flow Azure AI Buffer Type
  6. 575validatesTable 852 Cash Flow Azure AI Buffer Period Start
  7. 576validatesTable 852 Cash Flow Azure AI Buffer Period Type
  8. 577validatesTable 852 Cash Flow Azure AI Buffer Period No.
  9. 578writesTable 852 Cash Flow Azure AI Buffer Insert

GetCorrectionAmount line 581, local

  1. 585callsCalculatePostedPurchDocsSumAmountInPeriod
  2. 587callsCalculateNotPostedPurchOrderSumAmountInPeriod
  3. 589callsCalculatePostedSalesDocsSumAmountInPeriod
  4. 591callsCalculateNotPostedSalesOrderSumAmountInPeriod
  5. 593callsCalculatePostedDocsSumTaxInPeriod
  6. 595callsCalculateNotPostedPurchOrderSumAmountInPeriod
  7. 597callsCalculatePostedDocsSumTaxInPeriod
  8. 599callsCalculateNotPostedSalesOrderSumAmountInPeriod

CreateSetupNotification line 628, local

  1. 632callsShowNotification

ShowNotification line 642, local

  1. 647callsCodeunit 4030 Client Type Management GetCurrentClientType

DeactivateNotification line 666

  1. 673writesTable 843 Cash Flow Setup Modify(true)

SetupAzureAI line 676

  1. 681runsPage 846 Cash Flow Setup
  2. 683callsCodeunit 457 Environment Information IsSaaS
  3. 686writesTable 843 Cash Flow Setup Modify(true)

AggregateTaxRecordsToTaxablePeriod line 696, local

  1. 713callsTable 843 Cash Flow Setup GetTaxPaymentDueDate
  2. 714callsTable 843 Cash Flow Setup GetTaxPeriodEndDate
  3. 730callsTable 843 Cash Flow Setup GetTaxPaymentDueDate
  4. 731writesTable 2001 Time Series Forecast Modify
  5. 734writesTable 2001 Time Series Forecast Delete

OnOpenCashFlowForecastChart line 741, local

  1. 743callsCreateSetupNotification