2020-10-26 05:20:31 +03:00
|
|
|
|
$ hledger -f sample.journal balance --tree --format="%30(account) %-.20(total)"
|
|
|
|
|
>
|
2011-06-21 01:33:26 +04:00
|
|
|
|
assets $-1
|
|
|
|
|
bank:saving $1
|
|
|
|
|
cash $-2
|
|
|
|
|
expenses $2
|
|
|
|
|
food $1
|
|
|
|
|
supplies $1
|
|
|
|
|
income $-2
|
|
|
|
|
gifts $-1
|
|
|
|
|
salary $-1
|
|
|
|
|
liabilities:debts $1
|
2015-08-20 06:28:24 +03:00
|
|
|
|
----------------------------------
|
|
|
|
|
0
|
2020-10-26 05:20:31 +03:00
|
|
|
|
>= 0
|
|
|
|
|
|
|
|
|
|
<
|
|
|
|
|
2020-09-01 Test
|
|
|
|
|
a -500 AAA
|
|
|
|
|
b
|
|
|
|
|
|
|
|
|
|
# Test too-small maximum balance widths
|
|
|
|
|
$ hledger -f - balance -N --format="%7.7(total) %(account)"
|
|
|
|
|
>
|
|
|
|
|
1 mor.. a
|
|
|
|
|
500 AAA b
|
|
|
|
|
>= 0
|
|
|
|
|
|
|
|
|
|
# Check that maximum balance widths works with colour
|
|
|
|
|
$ hledger -f - balance -N --format="%8.8(total) %(account)" --color=yes
|
|
|
|
|
>
|
|
|
|
|
[31m-500 AAA[m a
|
|
|
|
|
500 AAA b
|
|
|
|
|
>= 0
|