report_cash_flow
parameter. This will cause the ledger to be included in the cash flow report calculation.
Generally, all accounts that hold funds, such as bank accounts and credit cards, should be the only accounts included in the cash flow report. If you want to create an advanced cash flow report, you can include loans and investments, but we only recommend this if your users are looking for a specific circumstance.
Teal will automatically tabulate movements of cash in and out of report_cash_flow
enabled accounts to produce a cash flow report. Movements of cash between report_cash_flow
enabled accounts are not reported, as they are movements of cash within the business rather than into or out of the business.
report_cash_flow
enabled account. See the creating ledgers guide for more info.
/v0/reports/cash-flow
to get the cash flow report data.
starting_cash_balance
is the sum of each total_cash_balance
in the starting_balance
array. Group these together to make the hierachy clear and repeat for the ending balance.
amount
and total_amount
: amount
reports the sum of entries in that ledger, where total_amount
reports the sum of entries in that ledger and all child ledgers.cash_flow_ledgers
array to list each ledger that has affected the balance.
start_date
and end_date
parameters to filter the request. If you need a date picker to get started, see the Reports introduction for an example. In this example, we use the date picker to set the start_date
and end_date
as query parameters and use those in our request. If the query params have not been set, you should have a default date range to fall back to, for example the year to date, in YYYY-MM-DD
format.
report_cash_flow
attribute is true.new Intl.NumberFormat()
in JavaScript) to ensure symbols, decimal places, and commas are appropriately accounted for.font-variant-numeric: tabular-nums;
css rule to display the amounts to keep consistent spacing for optimal legibility.