2010-11-13 23:20:04 +03:00
|
|
|
# report cleared transactions only
|
|
|
|
#
|
|
|
|
bin/hledger -f- print --cleared
|
|
|
|
<<<
|
|
|
|
2010/1/1 x
|
|
|
|
a 1
|
|
|
|
b
|
|
|
|
|
|
|
|
2010/1/2 * x
|
|
|
|
a 1
|
|
|
|
b
|
|
|
|
|
|
|
|
2010/1/3 *
|
|
|
|
a 1
|
|
|
|
b
|
|
|
|
>>>
|
|
|
|
2010/01/02 * x
|
|
|
|
a 1
|
|
|
|
b -1
|
|
|
|
|
|
|
|
2010/01/03 *
|
|
|
|
a 1
|
|
|
|
b -1
|
|
|
|
|
2011-03-12 23:55:49 +03:00
|
|
|
>>>=0
|
|
|
|
|
2010-11-13 23:20:04 +03:00
|
|
|
# report uncleared transactions only
|
|
|
|
bin/hledger -f- print --uncleared
|
|
|
|
<<<
|
|
|
|
2010/1/1 x
|
|
|
|
a 1
|
|
|
|
b
|
|
|
|
|
|
|
|
2010/1/2 * x
|
|
|
|
a 1
|
|
|
|
b
|
|
|
|
|
|
|
|
2010/1/3 *
|
|
|
|
a 1
|
|
|
|
b
|
|
|
|
>>>
|
|
|
|
2010/01/01 x
|
|
|
|
a 1
|
|
|
|
b -1
|
|
|
|
|
2011-03-12 23:55:49 +03:00
|
|
|
>>>=0
|
|
|
|
|
2010-11-13 23:20:04 +03:00
|
|
|
# we don't yet support cleared postings, except we should ignore the marker when parsing them
|
|
|
|
bin/hledger -f- balance --no-total
|
|
|
|
<<<
|
|
|
|
2010/1/1
|
|
|
|
a 1
|
|
|
|
*a 2
|
|
|
|
* a 4
|
|
|
|
b
|
|
|
|
|
|
|
|
>>>
|
|
|
|
7 a
|
|
|
|
-7 b
|
2011-03-12 23:55:49 +03:00
|
|
|
>>>=0
|