---
title: "Codeunit 850 Cash Flow Forecast Handler, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/points/
object: https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/
checked: 2026-11-20
changed: 2026-10-05
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 850 Cash Flow Forecast Handler, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/points/

23 procedures and triggers with a step in src/Layers/W1/BaseApp/CashFlow/Forecast/CashFlowForecastHandler.Codeunit.al, in source order, read from the text, not from a run.

## CalculateForecast

[Line 59](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L59).

- [61](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L61) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `ClearLog`
- [63](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L63) calls `Initialize`
- [64](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L64) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `CopyFromTemp`
- [69](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L69) calls `CalculateVATAndLedgerForecast`

## CalculateVATAndLedgerForecast

[Line 74](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L74), local.

- [80](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L80) calls `PrepareForecast`
- [81](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L81) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `CopyFromTemp`
- [86](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L86) calls [Codeunit 2000 Time Series Management](https://jonas-paprotka.de/ref/codeunit/2000-time-series-management/) `SetPreparedData`
- [87](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L87) calls [Codeunit 2000 Time Series Management](https://jonas-paprotka.de/ref/codeunit/2000-time-series-management/) `Forecast`
- [88](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L88) calls [Codeunit 2000 Time Series Management](https://jonas-paprotka.de/ref/codeunit/2000-time-series-management/) `GetForecast`
- [91](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L91) calls `ClearCashFlowAzureAIBuffer`
- [92](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L92) calls `CashFlowAzureAIBufferFill`
- [93](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L93) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `CopyFromTemp`

## CalculatePostedSalesDocsSumAmountInPeriod

[Line 96](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L96), local.

- [104](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L104) calls `GetPeriodEndingDate`

## CalculatePostedPurchDocsSumAmountInPeriod

[Line 114](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L114), local.

- [122](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L122) calls `GetPeriodEndingDate`

## CalculatePostedDocsSumTaxInPeriod

[Line 132](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L132), local.

- [142](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L142) calls [Table 843 Cash Flow Setup](https://jonas-paprotka.de/ref/table/843-cash-flow-setup/) `GetTaxPeriodStartEndDates`

## CalculateNotPostedSalesOrderSumAmountInPeriod

[Line 156](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L156), local.

- [168](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L168) calls [Table 843 Cash Flow Setup](https://jonas-paprotka.de/ref/table/843-cash-flow-setup/) `GetTaxPeriodStartEndDates`
- [172](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L172) calls `GetPeriodEndingDate`
- [179](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L179) calls [Codeunit 841 Cash Flow Management](https://jonas-paprotka.de/ref/codeunit/841-cash-flow-management/) `GetTaxAmountFromSalesOrder`
- [181](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L181) calls [Codeunit 841 Cash Flow Management](https://jonas-paprotka.de/ref/codeunit/841-cash-flow-management/) `GetTotalAmountFromSalesOrder`

## CalculateNotPostedPurchOrderSumAmountInPeriod

[Line 189](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L189), local.

- [202](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L202) calls [Table 843 Cash Flow Setup](https://jonas-paprotka.de/ref/table/843-cash-flow-setup/) `GetTaxPeriodStartEndDates`
- [206](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L206) calls `GetPeriodEndingDate`
- [213](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L213) calls [Codeunit 841 Cash Flow Management](https://jonas-paprotka.de/ref/codeunit/841-cash-flow-management/) `GetTaxAmountFromPurchaseOrder`
- [215](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L215) calls [Codeunit 841 Cash Flow Management](https://jonas-paprotka.de/ref/codeunit/841-cash-flow-management/) `GetTotalAmountFromPurchaseOrder`

## PrepareForecast

[Line 223](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L223).

- [237](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L237) calls `SetFiltersOnRecords`
- [239](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L239) calls [Codeunit 2000 Time Series Management](https://jonas-paprotka.de/ref/codeunit/2000-time-series-management/) `HasMinimumHistoricalData`
- [246](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L246) raises `OnAfterHasMinimumHistoricalData`
- [254](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L254) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `LogSimpleMessage`
- [262](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L262) calls `PrepareData`
- [271](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L271) raises `OnAfterPrepareSalesHistoryData`
- [272](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L272) calls `AppendRecords`
- [275](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L275) calls `PrepareData`
- [284](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L284) raises `OnAfterPreparePurchHistoryData`
- [285](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L285) calls `AppendRecords`
- [290](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L290) calls `TimeSeriesPrepareAndGetData`
- [297](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L297) calls `AppendRecords`
- [299](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L299) writes [Table 2000 Time Series Buffer](https://jonas-paprotka.de/ref/table/2000-time-series-buffer/) DeleteAll
- [302](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L302) calls `TimeSeriesPrepareAndGetData`
- [309](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L309) calls `AppendRecords`

## CashFlowAzureAIBufferFill

[Line 314](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L314).

- [324](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L324) calls `NewCashFlowAzureAIBufferRecord`
- [335](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L335) calls `AggregateTaxRecordsToTaxablePeriod`
- [336](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L336) calls `AggregateTaxRecordsToTaxablePeriod`
- [342](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L342) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `LogSimpleMessage`
- [345](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L345) calls `IsAmountValid`
- [349](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L349) calls `NewCashFlowAzureAIBufferRecord`
- [363](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L363) calls `NewCorrectionRecord`
- [364](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L364) calls `NewCorrectionRecord`
- [368](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L368) calls `NewCorrectionRecord`
- [369](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L369) calls `NewCorrectionRecord`
- [373](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L373) calls `NewCorrectionRecord`
- [374](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L374) calls `NewCorrectionRecord`
- [378](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L378) calls `NewCorrectionRecord`
- [379](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L379) calls `NewCorrectionRecord`

## ClearCashFlowAzureAIBuffer

[Line 386](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L386), local.

- [391](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L391) writes [Table 852 Cash Flow Azure AI Buffer](https://jonas-paprotka.de/ref/table/852-cash-flow-azure-ai-buffer/) DeleteAll

## PrepareData

[Line 409](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L409), local.

- [413](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L413) calls `TimeSeriesPrepareAndGetData`
- [422](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L422) writes [Table 2000 Time Series Buffer](https://jonas-paprotka.de/ref/table/2000-time-series-buffer/) Modify

## TimeSeriesPrepareAndGetData

[Line 426](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L426), local.

- [428](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L428) calls [Codeunit 2000 Time Series Management](https://jonas-paprotka.de/ref/codeunit/2000-time-series-management/) `PrepareData`
- [437](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L437) calls [Codeunit 2000 Time Series Management](https://jonas-paprotka.de/ref/codeunit/2000-time-series-management/) `GetPreparedData`

## AppendRecords

[Line 440](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L440), local.

- [445](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L445) validates [Table 2000 Time Series Buffer](https://jonas-paprotka.de/ref/table/2000-time-series-buffer/) `Value`
- [446](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L446) writes [Table 2000 Time Series Buffer](https://jonas-paprotka.de/ref/table/2000-time-series-buffer/) Modify
- [448](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L448) validates [Table 2000 Time Series Buffer](https://jonas-paprotka.de/ref/table/2000-time-series-buffer/) `Value`
- [449](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L449) validates [Table 2000 Time Series Buffer](https://jonas-paprotka.de/ref/table/2000-time-series-buffer/) `Period Start Date`
- [450](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L450) validates [Table 2000 Time Series Buffer](https://jonas-paprotka.de/ref/table/2000-time-series-buffer/) `Period No.`
- [451](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L451) validates [Table 2000 Time Series Buffer](https://jonas-paprotka.de/ref/table/2000-time-series-buffer/) `Group ID`
- [452](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L452) writes [Table 2000 Time Series Buffer](https://jonas-paprotka.de/ref/table/2000-time-series-buffer/) Insert

## Initialize

[Line 458](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L458).

- [475](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L475) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `SetContext`
- [477](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L477) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `LogMessage`
- [485](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L485) calls [Table 843 Cash Flow Setup](https://jonas-paprotka.de/ref/table/843-cash-flow-setup/) `GetMLCredentials`
- [486](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L486) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `LogMessage`
- [496](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L496) calls [Table 843 Cash Flow Setup](https://jonas-paprotka.de/ref/table/843-cash-flow-setup/) `IsAPIUserDefined`
- [497](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L497) calls [Codeunit 2006 Azure AI Usage](https://jonas-paprotka.de/ref/codeunit/2006-azure-ai-usage/) `IsLimitReached`
- [498](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L498) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `LogSimpleMessage`
- [503](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L503) calls [Codeunit 2000 Time Series Management](https://jonas-paprotka.de/ref/codeunit/2000-time-series-management/) `Initialize`
- [504](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L504) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `LogSimpleMessage`
- [508](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L508) calls [Codeunit 2000 Time Series Management](https://jonas-paprotka.de/ref/codeunit/2000-time-series-management/) `SetMaximumHistoricalPeriods`
- [509](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L509) calls [Codeunit 2000 Time Series Management](https://jonas-paprotka.de/ref/codeunit/2000-time-series-management/) `GetState`
- [513](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L513) calls `GetForecastStartDate`

## NewCashFlowAzureAIBufferRecord

[Line 533](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L533), local.

- [538](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L538) validates [Table 852 Cash Flow Azure AI Buffer](https://jonas-paprotka.de/ref/table/852-cash-flow-azure-ai-buffer/) `Group Id`
- [539](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L539) validates [Table 852 Cash Flow Azure AI Buffer](https://jonas-paprotka.de/ref/table/852-cash-flow-azure-ai-buffer/) `Amount`
- [540](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L540) validates [Table 852 Cash Flow Azure AI Buffer](https://jonas-paprotka.de/ref/table/852-cash-flow-azure-ai-buffer/) `Delta %`
- [541](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L541) validates [Table 852 Cash Flow Azure AI Buffer](https://jonas-paprotka.de/ref/table/852-cash-flow-azure-ai-buffer/) `Delta`
- [542](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L542) validates [Table 852 Cash Flow Azure AI Buffer](https://jonas-paprotka.de/ref/table/852-cash-flow-azure-ai-buffer/) `Type`
- [543](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L543) validates [Table 852 Cash Flow Azure AI Buffer](https://jonas-paprotka.de/ref/table/852-cash-flow-azure-ai-buffer/) `Period Start`
- [544](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L544) validates [Table 852 Cash Flow Azure AI Buffer](https://jonas-paprotka.de/ref/table/852-cash-flow-azure-ai-buffer/) `Period Type`
- [545](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L545) validates [Table 852 Cash Flow Azure AI Buffer](https://jonas-paprotka.de/ref/table/852-cash-flow-azure-ai-buffer/) `Period No.`
- [546](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L546) writes [Table 852 Cash Flow Azure AI Buffer](https://jonas-paprotka.de/ref/table/852-cash-flow-azure-ai-buffer/) Insert

## NewCorrectionRecord

[Line 549](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L549), local.

- [557](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L557) calls `GetCorrectionAmount`
- [569](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L569) calls `ConvertValueBasedOnType`
- [572](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L572) validates [Table 852 Cash Flow Azure AI Buffer](https://jonas-paprotka.de/ref/table/852-cash-flow-azure-ai-buffer/) `Group Id`
- [573](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L573) validates [Table 852 Cash Flow Azure AI Buffer](https://jonas-paprotka.de/ref/table/852-cash-flow-azure-ai-buffer/) `Amount`
- [574](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L574) validates [Table 852 Cash Flow Azure AI Buffer](https://jonas-paprotka.de/ref/table/852-cash-flow-azure-ai-buffer/) `Type`
- [575](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L575) validates [Table 852 Cash Flow Azure AI Buffer](https://jonas-paprotka.de/ref/table/852-cash-flow-azure-ai-buffer/) `Period Start`
- [576](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L576) validates [Table 852 Cash Flow Azure AI Buffer](https://jonas-paprotka.de/ref/table/852-cash-flow-azure-ai-buffer/) `Period Type`
- [577](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L577) validates [Table 852 Cash Flow Azure AI Buffer](https://jonas-paprotka.de/ref/table/852-cash-flow-azure-ai-buffer/) `Period No.`
- [578](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L578) writes [Table 852 Cash Flow Azure AI Buffer](https://jonas-paprotka.de/ref/table/852-cash-flow-azure-ai-buffer/) Insert

## GetCorrectionAmount

[Line 581](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L581), local.

- [585](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L585) calls `CalculatePostedPurchDocsSumAmountInPeriod`
- [587](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L587) calls `CalculateNotPostedPurchOrderSumAmountInPeriod`
- [589](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L589) calls `CalculatePostedSalesDocsSumAmountInPeriod`
- [591](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L591) calls `CalculateNotPostedSalesOrderSumAmountInPeriod`
- [593](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L593) calls `CalculatePostedDocsSumTaxInPeriod`
- [595](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L595) calls `CalculateNotPostedPurchOrderSumAmountInPeriod`
- [597](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L597) calls `CalculatePostedDocsSumTaxInPeriod`
- [599](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L599) calls `CalculateNotPostedSalesOrderSumAmountInPeriod`

## CreateSetupNotification

[Line 628](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L628), local.

- [632](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L632) calls `ShowNotification`

## ShowNotification

[Line 642](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L642), local.

- [647](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L647) calls [Codeunit 4030 Client Type Management](https://jonas-paprotka.de/ref/codeunit/4030-client-type-management/) `GetCurrentClientType`

## DeactivateNotification

[Line 666](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L666).

- [673](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L673) writes [Table 843 Cash Flow Setup](https://jonas-paprotka.de/ref/table/843-cash-flow-setup/) Modify(true)

## SetupAzureAI

[Line 676](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L676).

- [681](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L681) runs [Page 846 Cash Flow Setup](https://jonas-paprotka.de/ref/page/846-cash-flow-setup/)
- [683](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L683) calls [Codeunit 457 Environment Information](https://jonas-paprotka.de/ref/codeunit/457-environment-information/) `IsSaaS`
- [686](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L686) writes [Table 843 Cash Flow Setup](https://jonas-paprotka.de/ref/table/843-cash-flow-setup/) Modify(true)

## AggregateTaxRecordsToTaxablePeriod

[Line 696](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L696), local.

- [713](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L713) calls [Table 843 Cash Flow Setup](https://jonas-paprotka.de/ref/table/843-cash-flow-setup/) `GetTaxPaymentDueDate`
- [714](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L714) calls [Table 843 Cash Flow Setup](https://jonas-paprotka.de/ref/table/843-cash-flow-setup/) `GetTaxPeriodEndDate`
- [730](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L730) calls [Table 843 Cash Flow Setup](https://jonas-paprotka.de/ref/table/843-cash-flow-setup/) `GetTaxPaymentDueDate`
- [731](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L731) writes [Table 2001 Time Series Forecast](https://jonas-paprotka.de/ref/table/2001-time-series-forecast/) Modify
- [734](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L734) writes [Table 2001 Time Series Forecast](https://jonas-paprotka.de/ref/table/2001-time-series-forecast/) Delete

## OnOpenCashFlowForecastChart

[Line 741](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L741), local.

- [743](https://jonas-paprotka.de/ref/codeunit/850-cash-flow-forecast-handler/source/#L743) calls `CreateSetupNotification`

## Source

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

JOP-AL, 2026-11-20.
