hledger-1.33: Command-line interface for the hledger accounting system
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hledger.Cli.Commands.Print

Description

A ledger-compatible print command.

Synopsis

Documentation

print' :: CliOpts -> Journal -> IO () Source #

Print journal transactions in standard format.

roundFromRawOpts :: RawOpts -> Maybe Rounding Source #

Get the --round option's value, if any. Can fail with a parse error.

amountStylesSetRoundingFromRawOpts :: RawOpts -> Map CommoditySymbol AmountStyle -> Map CommoditySymbol AmountStyle Source #

Set these amount styles' rounding strategy when they are being applied to amounts, according to the value of the --round option, if any.

transactionWithMostlyOriginalPostings :: Transaction -> Transaction Source #

Replace this transaction's postings with the original postings if any, but keep the current possibly rewritten account names, and the inferred values of any auto postings. This is mainly for showing transactions with the amounts in their original journal format.