mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-28 21:02:04 +03:00
79ca4a767e
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. |
||
---|---|---|
.. | ||
87.test | ||
219.test | ||
373-layout.test | ||
balance-multicol.journal | ||
balance.test | ||
budget-sorting.test | ||
budget.test | ||
date2.test | ||
depth.test | ||
flat.test | ||
format.test | ||
intervals.test | ||
no-total-no-elide.test | ||
percent.test | ||
precision.test | ||
pretty.test | ||
sample.journal | ||
sorting.test | ||
transpose.test |