A periodic report is a generic tabular report, where each row corresponds to some label (usually an account name) and each column to a date period. The column periods are usually consecutive subperiods formed by splitting the overall report period by some report interval (daily, weekly, etc.). It has:
a list of each column's period (date span)
a list of rows, each containing:
an account label
the account's depth
A list of amounts, one for each column. Depending on the value type, these can represent balance changes, ending balances, budget performance, etc. (for example, see
BalanceAccumulationandHledger.Cli.Commands.Balance).the total of the row's amounts for a periodic report, or zero for cumulative/historical reports (since summing end balances generally doesn't make sense).
the average of the row's amounts
the column totals, and the overall grand total (or zero for cumulative/historical reports) and grand average.
Constructors
PeriodicReportprDates :: [DateSpan]prRows :: [PeriodicReportRow a b]prTotals :: PeriodicReportRow () b
Instances8Bifunctor, Functor, Show, Generic, ToJSON, HasAmounts, …
Bifunctor PeriodicReportDefined in hledger-lib-1.52.4 · Hledger.Reports.ReportTypesFunctor (PeriodicReport a)Defined in hledger-lib-1.52.4 · Hledger.Reports.ReportTypes(Show a, Show b) => Show (PeriodicReport a b)Defined in hledger-lib-1.52.4 · Hledger.Reports.ReportTypesGeneric (PeriodicReport a b)Defined in hledger-lib-1.52.4 · Hledger.Reports.ReportTypes(ToJSON a, ToJSON b) => ToJSON (PeriodicReport a b)Defined in hledger-lib-1.52.4 · Hledger.Reports.ReportTypesHasAmounts b => HasAmounts (PeriodicReport a b)Defined in hledger-lib-1.52.4 · Hledger.Reports.ReportTypesHasAmounts b => HasAmounts (Text, PeriodicReport a b, Bool)Defined in hledger-lib-1.52.4 · Hledger.Reports.ReportTypestype Rep (PeriodicReport a b) = D1 ('MetaDataDefined in hledger-lib-1.52.4 · Hledger.Reports.ReportTypes"PeriodicReport"
"Hledger.Reports.ReportTypes"
"hledger-lib-1.52.4-9hXfdej3TnZFrbN8mI8ppA"
'False) (C1 ('MetaCons"PeriodicReport"
'PrefixI 'True) (S1 ('MetaSel ('Just"prDates"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [DateSpan]) :*: (S1 ('MetaSel ('Just"prRows"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PeriodicReportRow a b]) :*: S1 ('MetaSel ('Just"prTotals"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PeriodicReportRow () b)))))