hledger/tests/balance/multicommodity.test
Simon Michael 2739a70a38 balcmds: elide amounts with 3 or more commodities, unless --no-elide
Multicolumn balance reports showing many commodities tend to become
unreadably wide, especially in tree mode. Now by default we show at
most two commodities, and a count of the rest if there are more than
two. This should help keep reports somewhat readable by default.
2020-07-05 06:59:16 -07:00

27 lines
506 B
Plaintext

# 1. In tabular balance reports, amounts with more than two commodities are elided.
<
2020-01-01
(a) 1A
(a) 1B
(a) 1C
(a) 1D
$ hledger -f- bal -Y
Balance changes in 2020:
|| 2020
===++==================
a || 1A, 1B, 2 more..
---++------------------
|| 1A, 1B, 2 more..
# 2. Unless --no-elide is used.
$ hledger -f- bal -Y --no-elide
Balance changes in 2020:
|| 2020
===++================
a || 1A, 1B, 1C, 1D
---++----------------
|| 1A, 1B, 1C, 1D