2011-04-20 01:32:13 +04:00
|
|
|
# 1. One commodity. Zero accounts should be elided but the final total should not.
|
2011-04-20 00:22:14 +04:00
|
|
|
bin/hledger -f - balance
|
|
|
|
<<<
|
|
|
|
2010/04/01 tr1
|
|
|
|
a 16$
|
|
|
|
b -16$
|
|
|
|
|
|
|
|
2010/04/02 tr2
|
|
|
|
a -16$
|
|
|
|
b 16$
|
|
|
|
>>>
|
|
|
|
--------------------
|
|
|
|
0
|
2011-04-20 01:32:13 +04:00
|
|
|
>>>=0
|
|
|
|
|
|
|
|
# 2. Two commodities. As above, and the final total should be a single commodityless zero.
|
2011-04-20 00:22:14 +04:00
|
|
|
bin/hledger -f - balance
|
|
|
|
<<<
|
2011-04-22 17:50:05 +04:00
|
|
|
2010/1/1
|
2011-04-20 00:22:14 +04:00
|
|
|
a 16$ @@ 10€
|
|
|
|
b -10€
|
2011-04-22 17:50:05 +04:00
|
|
|
2010/1/2
|
2011-04-20 00:22:14 +04:00
|
|
|
a -16$
|
|
|
|
b 10€ @@ 16$
|
|
|
|
>>>
|
|
|
|
--------------------
|
|
|
|
0
|
2011-04-20 01:32:13 +04:00
|
|
|
>>>=0
|