hledger/hledger-lib/Hledger/Reports
Stephen Morgan 80cf1d1995 !dev: lib: Allow Account to store date-indexed balances.
This upgrades Account to enable it to store a multiperiod balance, with
a separate balance for each date period. This enables it do the hard
work in MultiBalanceReport.

Some new types are created to enable convenient operation of accounts.
- `BalanceData` is a type which stores an exclusive balance, inclusive
  balance, and number of postings. This was previously directly stored
  in Account, but is now factored into a separate data type.
- `PeriodData` is a container which stores date-indexed data, as well as
  pre-period data. In post cases, this represents the report spans,
  along with the historical data.
- Account becomes polymorphic, allowing customisation of the type of
  data it stores. This will usually be `BalanceData`, but in
  `BudgetReport` it can use `These BalanceData BalanceData` to store
  both actuals and budgets in the same structure. The data structure
  changes to contain a `PeriodData`, allowing multiperiod accounts.

Some minor changes are made to behaviour for consistency:
- --declared treats parent accounts consistently.
- --flat --empty ensures that implied accounts with no postings are not displayed, but
  accounts with zero balance and actual postings are.
2025-06-04 23:10:00 -10:00
..
AccountTransactionsReport.hs imp:lib:Hledger.Utils.Debug: simpler, more consistent dbg* names 2025-05-21 22:54:00 -10:00
BalanceReport.hs imp: queries: Allow regular expression depth queries 2024-12-03 08:33:21 -10:00
BudgetReport.hs !dev: lib: Allow Account to store date-indexed balances. 2025-06-04 23:10:00 -10:00
EntriesReport.hs imp:print: support --invert [#2314] 2025-01-27 05:21:36 -10:00
MultiBalanceReport.hs !dev: lib: Allow Account to store date-indexed balances. 2025-06-04 23:10:00 -10:00
PostingsReport.hs !dev: lib: Allow Account to store date-indexed balances. 2025-06-04 23:10:00 -10:00
ReportOptions.hs !dev: lib: Allow Account to store date-indexed balances. 2025-06-04 23:10:00 -10:00
ReportTypes.hs dev: fix DisplayName's off-by-one indent value, noted in #2246 2024-10-08 23:11:57 -10:00