{"title":"Codeunit 131331 Library - Cash Flow, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/points/","author":"JOP-AL","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/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":131331,"name":"Library - Cash Flow","app":"Application Test Library","url":"https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/131331-library-cash-flow/source/","path":"src/Layers/W1/Tests/ApplicationTestLibrary/LibraryCashFlow.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"table:846":{"name":"Cash Flow Worksheet Line","url":"https://jonas-paprotka.de/ref/table/846-cash-flow-worksheet-line/"},"codeunit:131000":{"name":"Library - Utility","url":"https://jonas-paprotka.de/ref/codeunit/131000-library-utility/"},"report:840":{"name":"Suggest Worksheet Lines","url":"https://jonas-paprotka.de/ref/report/840-suggest-worksheet-lines/"},"codeunit:844":{"name":"Cash Flow Wksh.-Register Batch","url":"https://jonas-paprotka.de/ref/codeunit/844-cash-flow-wksh-register-batch/"},"table:850":{"name":"Cash Flow Manual Expense","url":"https://jonas-paprotka.de/ref/table/850-cash-flow-manual-expense/"},"table:849":{"name":"Cash Flow Manual Revenue","url":"https://jonas-paprotka.de/ref/table/849-cash-flow-manual-revenue/"},"table:840":{"name":"Cash Flow Forecast","url":"https://jonas-paprotka.de/ref/table/840-cash-flow-forecast/"},"table:841":{"name":"Cash Flow Account","url":"https://jonas-paprotka.de/ref/table/841-cash-flow-account/"},"codeunit:131300":{"name":"Library - ERM","url":"https://jonas-paprotka.de/ref/codeunit/131300-library-erm/"},"codeunit:130509":{"name":"Library - Sales","url":"https://jonas-paprotka.de/ref/codeunit/130509-library-sales/"},"codeunit:130440":{"name":"Library - Random","url":"https://jonas-paprotka.de/ref/codeunit/130440-library-random/"},"table:81":{"name":"Gen. Journal Line","url":"https://jonas-paprotka.de/ref/table/81-gen-journal-line/"}},"procs":[{"name":"CreateJournalLine","line":35,"kind":"procedure","params":3,"steps":[[41,"validate",846,"Line No."],[41,"ext","codeunit",131000,"GetNewLineNo",2],[42,"write",846,"Insert",1],[43,"validate",846,"Cash Flow Forecast No."],[44,"validate",846,"Cash Flow Account No."],[45,"validate",846,"Cash Flow Date"],[46,"write",846,"Modify",1]]},{"name":"FillJournal","line":53,"kind":"procedure","params":3,"steps":[[59,"ext","report",840,"InitializeRequest",4]]},{"name":"FillBudgetJournal","line":64,"kind":"procedure","params":3,"steps":[[74,"ext","report",840,"InitializeRequest",4]]},{"name":"ClearJournal","line":79,"kind":"procedure","params":0,"steps":[[83,"write",846,"DeleteAll",1]]},{"name":"PostJournal","line":86,"kind":"procedure","params":0,"steps":[[90,"run","codeunit",844]]},{"name":"PostJournalLines","line":93,"kind":"procedure","params":1,"steps":[[96,"run","codeunit",844]]},{"name":"CreateManualLinePayment","line":99,"kind":"procedure","params":2,"steps":[[102,"validate",850,"Cash Flow Account No."],[103,"validate",850,"Code"],[104,"ext","codeunit",131000,"GenerateRandomCode",2],[105,"validate",850,"Starting Date"],[106,"write",850,"Insert",1]]},{"name":"CreateManualLineRevenue","line":109,"kind":"procedure","params":2,"steps":[[112,"validate",849,"Cash Flow Account No."],[113,"validate",849,"Code"],[114,"ext","codeunit",131000,"GenerateRandomCode",2],[115,"validate",849,"Starting Date"],[116,"write",849,"Insert",1]]},{"name":"CreateCashFlowCard","line":123,"kind":"procedure","params":1,"steps":[[126,"validate",840,"No."],[127,"ext","codeunit",131000,"GenerateRandomCode",2],[128,"write",840,"Insert",1]]},{"name":"CreateCashFlowAccount","line":131,"kind":"procedure","params":2,"steps":[[134,"validate",841,"No."],[135,"ext","codeunit",131000,"GenerateRandomCode",2],[136,"validate",841,"Account Type"],[137,"validate",841,"Name"],[138,"ext","codeunit",131000,"GenerateRandomCode",2],[139,"write",841,"Insert",1]]},{"name":"MockCashFlowCustOverdueData","line":142,"kind":"procedure","params":0,"steps":[[147,"ext","codeunit",131300,"SelectLastGenJnBatch",1],[148,"ext","codeunit",131300,"ClearGenJournalLines",1],[149,"ext","codeunit",131300,"CreateGeneralJnlLineWithBalAcc",9],[151,"ext","codeunit",130509,"CreateCustomerNo",0],[152,"ext","codeunit",131300,"CreateGLAccountNo",0],[153,"ext","codeunit",130440,"RandDecInRange",3],[155,"write",81,"Modify"],[156,"ext","codeunit",131300,"PostGeneralJnlLine",1]]}]}