hledger/hledger-lib/Hledger
Michael Kainer 79ca4a767e cli: Add -% to compound balance commands
This commit introduces the commandline argument -%/--percent to show
percentages of the column's total instead of the absolute amounts for
each account in reports. The signs of the values are preserved.

This option is especially useful for the balance and incomestatement
commands.

If there are multiple commodities involved in a report hledger bails
with an error message. This can be avoided by using --cost. Also note
that if one uses -% with the balance command the chances are high that
all numbers are 0. This is due to the fact that by default balance sums
up to zero. If one wants to use -% in a meaningful way with balance one
has to add a query.

In order to keep the implementation as simple as possible --tree has no
influence over how the percentages are calculated, i.e., the percentages
always represent the fraction of the columns total. If one wants to know
the percentages relative to a parent account, one has to use a query to
narrow down the accounts.
2019-11-18 17:10:59 -08:00
..
Data cli: Add -% to compound balance commands 2019-11-18 17:10:59 -08:00
Read lib: balance-style -> balance-type 2019-11-13 09:06:25 -08:00
Reports cli: Add -% to compound balance commands 2019-11-18 17:10:59 -08:00
Utils lib: more robust multi-line joining in csv parser 2019-11-05 21:16:42 +00:00
Data.hs ;lib: refactor: Data.Prices -> Data.Valuation 2019-06-14 19:04:09 -07:00
Query.hs code: Strip extraneous trailing whitespace from Haskell sources 2019-07-15 16:40:49 +01:00
Read.hs ;lib: csv: note cause of #1087 2019-09-14 03:45:37 -07:00
Reports.hs ;lib: rename MultiBalanceReports.hs -> MultiBalanceReport.hs 2019-06-14 11:45:25 -07:00
Utils.hs lib: currying helpers 2019-08-19 02:09:27 +01:00