hledger/tests/balance/depth.test

28 lines
542 B
Plaintext
Raw Normal View History

# 1.
hledger -f sample.journal balance --no-total --depth 1
>>>
$-1 assets
$2 expenses
$-2 income
$1 liabilities
>>>=0
2011-09-23 06:04:33 +04:00
# 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