HORIZON HASKELLDocslts/ghc-10.0.x8c2f8e82026-10-19Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8c2f8e8 · 2026-10-19

Modulehledger-lib-1.52.4GHC2021

Hledger.Reports.MultiBalanceReport

Multi-column balance reports, used by the balance command.

  • 2 types
  • 10 values
  • Packagehledger-lib-1.52.4
  • Exports12
  • LanguageGHC2021
  • LicenceGPL-3.0-or-later
  • SourceMultiBalanceReport.hs

A multi balance report is a kind of periodic report, where the amounts correspond to balance changes or ending balances in a given period. It has:

  1. a list of each column's period (date span)

  2. a list of rows, each containing:

  • the full account name, display name, and display depth

  • A list of amounts, one for each column.

  • the total of the row's amounts for a periodic report

  • the average of the row's amounts

  1. the column totals, and the overall grand total (or zero for cumulative/historical reports) and grand average.

Generate a multicolumn balance report for the matched accounts, showing the change of balance, accumulated balance, or historical balance in each of the specified periods. If the normalbalance_ option is set, it adjusts the sorting and sign of amounts (see ReportOpts and CompoundBalanceCommand). hledger's most powerful and useful report, used by the balance command (in multiperiod mode) and (via compoundBalanceReport) by the bscfis commands.

Helper functions

6 declarations

Remove any date queries and insert queries from the report span. The user's query expanded to the report span if there is one (otherwise any date queries are left as-is, which handles the hledger-ui+future txns case above).