Hledger.Cli.Commands.Print

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

Safe Haskell | None
Language | Haskell2010

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 #

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

Print journal transactions in standard format.

roundFlag :: Flag RawOpts #

roundFromRawOpts :: RawOpts -> Maybe Rounding #

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

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

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 #

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.