hledger/hledger-lib
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
..
Hledger cli: Add -% to compound balance commands 2019-11-18 17:10:59 -08:00
other/ledger-parse lib: restrict imports, avoiding GHCI clashes 2016-11-20 10:27:16 -08:00
test code: Strip extraneous trailing whitespace from Haskell sources 2019-07-15 16:40:49 +01:00
Text code: Strip extraneous trailing whitespace from Haskell sources 2019-07-15 16:40:49 +01:00
.ghci tools: .ghci for each package, sets shorter prompt 2016-04-15 16:06:45 -07:00
.version ;bump version to 1.15.99 2019-09-13 08:43:33 -07:00
CHANGES.md ;doc: changelog update 2019-11-07 19:28:52 -08:00
defs.m4 ;bump version to 1.15.99 2019-09-13 08:43:33 -07:00
hledger_csv.5 ;doc: regen csv manuals 2019-11-12 13:32:35 -08:00
hledger_csv.info ;doc: regen csv manuals 2019-11-12 13:32:35 -08:00
hledger_csv.m4.md ;csv: doc: fix typo 2019-11-12 13:32:05 -08:00
hledger_csv.txt ;doc: regen csv manuals 2019-11-12 13:32:35 -08:00
hledger_journal.5 ;doc: regen manuals 2019-10-07 14:54:36 -10:00
hledger_journal.info ;doc: regen manuals 2019-10-07 14:54:36 -10:00
hledger_journal.m4.md ;doc: journal: oh, we can declare the null commodity 2019-09-27 17:58:46 -10:00
hledger_journal.txt ;doc: regen manuals 2019-10-07 14:54:36 -10:00
hledger_timeclock.5 ;doc: regen manuals 2019-09-13 11:00:03 -07:00
hledger_timeclock.info ;doc: regen manuals 2019-09-13 11:00:03 -07:00
hledger_timeclock.m4.md ;site: stop using pandoc's fenced_code_attributes 2019-08-26 18:41:33 -07:00
hledger_timeclock.txt ;doc: regen manuals 2019-09-13 11:00:03 -07:00
hledger_timedot.5 ;doc: regen manuals 2019-09-13 11:00:03 -07:00
hledger_timedot.info ;doc: regen manuals 2019-09-13 11:00:03 -07:00
hledger_timedot.m4.md ;site: manuals: fix many links that went to a prerelease manual 2019-09-09 06:24:08 -07:00
hledger_timedot.txt ;doc: regen manuals 2019-09-13 11:00:03 -07:00
hledger-lib.cabal drop GHC 7.10/base 4.8 support, finally, due to MonadFail hassles 2019-09-14 03:45:37 -07:00
Hledger.hs rename easytests_* to tests_* 2018-09-06 13:13:26 -07:00
LICENSE split off hledger-lib package, containing core types & utils 2010-03-22 01:44:59 +00:00
package.yaml drop GHC 7.10/base 4.8 support, finally, due to MonadFail hassles 2019-09-14 03:45:37 -07:00
README doc: ensure all five main packages have a README 2016-04-12 11:13:01 -07:00
Setup.hs Revert "remove Setup.hs files again, fixing a yesod devel warning" 2014-05-24 13:39:09 -07:00

A reusable library containing hledger's core functionality.
This is used by most hledger* packages for common data parsing,
command line option handling, reporting etc.