Safe Haskell | None |
---|
The Convert report. This report converts all account balances to a single commodity, which must be specified.
- data Opts = Opts {
- balanceFormat :: Amount Qty -> Text
- showZeroBalances :: ShowZeroBalances
- sorter :: Sorter
- target :: To
- dateTime :: DateTime
- textFormats :: Changers
- type Sorter = (SubAccount, BottomLine) -> (SubAccount, BottomLine) -> Ordering
- report :: Opts -> [PricePoint] -> [(a, Posting)] -> Exceptional Text [Chunk]
- cmdLineReport :: DefaultOpts -> Report
- getSorter :: SortOrder -> SortBy -> Sorter
Documentation
Options for the Convert report. These are the only options you need to use if you are supplying options programatically (as opposed to parsing them in from the command line.)
Opts | |
|
type Sorter = (SubAccount, BottomLine) -> (SubAccount, BottomLine) -> OrderingSource
How to sort each line of the report. Each subaccount has only one BottomLine (unlike in the MultiCommodity report, where each subaccount may have more than one BottomLine, one for each commodity.)
report :: Opts -> [PricePoint] -> [(a, Posting)] -> Exceptional Text [Chunk]Source
The function for the Convert report. Use this function if you are setting the options from a program (as opposed to parsing them in from the command line.) Will fail if the balance conversions fail.
cmdLineReport :: DefaultOpts -> ReportSource
Creates a report respecting the standard interface for reports whose options are parsed in from the command line.