Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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
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.