hledger/tests/balance/depth.test
2018-03-29 14:54:36 +01:00

28 lines
542 B
Plaintext

# 1.
hledger -f sample.journal balance --no-total --depth 1
>>>
$-1 assets
$2 expenses
$-2 income
$1 liabilities
>>>=0
# 2. Depth 0 aggregates everything into one line
hledger -f sample.journal balance --no-total --depth 0
>>>
0 ...
>>>=0
# 3. Ditto in a multi-column balance report.
hledger -f sample.journal balance -M -e 2008/4 --depth 0
>>>
Balance changes in 2008/01:
|| Jan
=====++=====
... || 0
-----++-----
|| 0
>>>=0