A ledger-compatible register
command.
- type RegisterReport = [RegisterReportItem]
- type RegisterReportItem = (Maybe (Day, String), Posting, MixedAmount)
- register :: [Opt] -> [String] -> Journal -> IO ()
- registerReport :: [Opt] -> FilterSpec -> Journal -> RegisterReport
- registerReportAsText :: [Opt] -> RegisterReport -> String
- showPostingWithBalanceForVty :: Bool -> Posting -> MixedAmount -> String
- tests_Hledger_Cli_Register :: Test
Documentation
type RegisterReport = [RegisterReportItem]Source
A register report is a list of postings to an account or set of accounts, with a running total. Postings may be actual postings, or virtual postings aggregated over a reporting interval.
type RegisterReportItem = (Maybe (Day, String), Posting, MixedAmount)Source
The data for a single register report line item, representing one posting.
registerReport :: [Opt] -> FilterSpec -> Journal -> RegisterReportSource
Get a register report with the specified options for this journal.
registerReportAsText :: [Opt] -> RegisterReport -> StringSource
Render a register report as plain text suitable for console output.
showPostingWithBalanceForVty :: Bool -> Posting -> MixedAmount -> StringSource