---
title: "Codeunit 131331 Library - Cash Flow, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/points/
object: https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/
app: "Application Test Library"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/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 131331 Library - Cash Flow, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/points/

11 procedures and triggers with a step in src/Layers/W1/Tests/ApplicationTestLibrary/LibraryCashFlow.Codeunit.al, in source order, read from the text, not from a run.

## CreateJournalLine

[Line 35](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L35).

- [41](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L41) validates [Table 846 Cash Flow Worksheet Line](https://jonas-paprotka.de/ref/table/846-cash-flow-worksheet-line/) `Line No.`
- [41](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L41) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetNewLineNo`
- [42](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L42) writes [Table 846 Cash Flow Worksheet Line](https://jonas-paprotka.de/ref/table/846-cash-flow-worksheet-line/) Insert(true)
- [43](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L43) validates [Table 846 Cash Flow Worksheet Line](https://jonas-paprotka.de/ref/table/846-cash-flow-worksheet-line/) `Cash Flow Forecast No.`
- [44](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L44) validates [Table 846 Cash Flow Worksheet Line](https://jonas-paprotka.de/ref/table/846-cash-flow-worksheet-line/) `Cash Flow Account No.`
- [45](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L45) validates [Table 846 Cash Flow Worksheet Line](https://jonas-paprotka.de/ref/table/846-cash-flow-worksheet-line/) `Cash Flow Date`
- [46](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L46) writes [Table 846 Cash Flow Worksheet Line](https://jonas-paprotka.de/ref/table/846-cash-flow-worksheet-line/) Modify(true)

## FillJournal

[Line 53](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L53).

- [59](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L59) calls [Report 840 Suggest Worksheet Lines](https://jonas-paprotka.de/ref/report/840-suggest-worksheet-lines/) `InitializeRequest`

## FillBudgetJournal

[Line 64](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L64).

- [74](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L74) calls [Report 840 Suggest Worksheet Lines](https://jonas-paprotka.de/ref/report/840-suggest-worksheet-lines/) `InitializeRequest`

## ClearJournal

[Line 79](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L79).

- [83](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L83) writes [Table 846 Cash Flow Worksheet Line](https://jonas-paprotka.de/ref/table/846-cash-flow-worksheet-line/) DeleteAll(true)

## PostJournal

[Line 86](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L86).

- [90](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L90) runs [Codeunit 844 Cash Flow Wksh.-Register Batch](https://jonas-paprotka.de/ref/codeunit/844-cash-flow-wksh-register-batch/)

## PostJournalLines

[Line 93](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L93).

- [96](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L96) runs [Codeunit 844 Cash Flow Wksh.-Register Batch](https://jonas-paprotka.de/ref/codeunit/844-cash-flow-wksh-register-batch/)

## CreateManualLinePayment

[Line 99](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L99).

- [102](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L102) validates [Table 850 Cash Flow Manual Expense](https://jonas-paprotka.de/ref/table/850-cash-flow-manual-expense/) `Cash Flow Account No.`
- [103](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L103) validates [Table 850 Cash Flow Manual Expense](https://jonas-paprotka.de/ref/table/850-cash-flow-manual-expense/) `Code`
- [104](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L104) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [105](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L105) validates [Table 850 Cash Flow Manual Expense](https://jonas-paprotka.de/ref/table/850-cash-flow-manual-expense/) `Starting Date`
- [106](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L106) writes [Table 850 Cash Flow Manual Expense](https://jonas-paprotka.de/ref/table/850-cash-flow-manual-expense/) Insert(true)

## CreateManualLineRevenue

[Line 109](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L109).

- [112](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L112) validates [Table 849 Cash Flow Manual Revenue](https://jonas-paprotka.de/ref/table/849-cash-flow-manual-revenue/) `Cash Flow Account No.`
- [113](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L113) validates [Table 849 Cash Flow Manual Revenue](https://jonas-paprotka.de/ref/table/849-cash-flow-manual-revenue/) `Code`
- [114](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L114) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [115](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L115) validates [Table 849 Cash Flow Manual Revenue](https://jonas-paprotka.de/ref/table/849-cash-flow-manual-revenue/) `Starting Date`
- [116](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L116) writes [Table 849 Cash Flow Manual Revenue](https://jonas-paprotka.de/ref/table/849-cash-flow-manual-revenue/) Insert(true)

## CreateCashFlowCard

[Line 123](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L123).

- [126](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L126) validates [Table 840 Cash Flow Forecast](https://jonas-paprotka.de/ref/table/840-cash-flow-forecast/) `No.`
- [127](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L127) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [128](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L128) writes [Table 840 Cash Flow Forecast](https://jonas-paprotka.de/ref/table/840-cash-flow-forecast/) Insert(true)

## CreateCashFlowAccount

[Line 131](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L131).

- [134](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L134) validates [Table 841 Cash Flow Account](https://jonas-paprotka.de/ref/table/841-cash-flow-account/) `No.`
- [135](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L135) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [136](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L136) validates [Table 841 Cash Flow Account](https://jonas-paprotka.de/ref/table/841-cash-flow-account/) `Account Type`
- [137](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L137) validates [Table 841 Cash Flow Account](https://jonas-paprotka.de/ref/table/841-cash-flow-account/) `Name`
- [138](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L138) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [139](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L139) writes [Table 841 Cash Flow Account](https://jonas-paprotka.de/ref/table/841-cash-flow-account/) Insert(true)

## MockCashFlowCustOverdueData

[Line 142](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L142).

- [147](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L147) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `SelectLastGenJnBatch`
- [148](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L148) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `ClearGenJournalLines`
- [149](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L149) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `CreateGeneralJnlLineWithBalAcc`
- [151](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L151) calls [Codeunit 130509 Library - Sales](https://jonas-paprotka.de/ref/codeunit/130509-library-sales/) `CreateCustomerNo`
- [152](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L152) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `CreateGLAccountNo`
- [153](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L153) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandDecInRange`
- [155](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L155) writes [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) Modify
- [156](https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/#L156) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `PostGeneralJnlLine`

## Source

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

JOP-AL, 2026-11-20.
