hledger-1.50.3: Command-line interface for the hledger accounting system

Safe Haskell | None
Language | GHC2021

Hledger.Cli.Commands.Print

Description

A ledger-compatible `print` command.

Synopsis

- printmode :: Mode RawOpts
- print' :: CliOpts -> Journal -> IO ()
- roundFlag :: Flag RawOpts
- roundFromRawOpts :: RawOpts -> Maybe Rounding
- amountStylesSetRoundingFromRawOpts :: RawOpts -> Map CommoditySymbol AmountStyle -> Map CommoditySymbol AmountStyle
- transactionWithMostlyOriginalPostings :: Transaction -> Transaction

# Documentation

printmode :: Mode RawOpts Source #

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

Print journal transactions in standard format.

roundFlag :: Flag RawOpts Source #

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.