59 lines
1.3 KiB
Plaintext
59 lines
1.3 KiB
Plaintext
# 1. register --depth N matches postings as usual but clips account names to N
|
|
bin/hledger -f - register aa --depth 1
|
|
<<<
|
|
2010/1/1 x
|
|
a:aa:aaa 1
|
|
b
|
|
>>>
|
|
2010/01/01 x a 1 1
|
|
>>>=0
|
|
|
|
# 2. similar to above, postings with same clipped account name are not aggregated
|
|
bin/hledger -f - register aa --depth 2
|
|
<<<
|
|
2010/1/1 x
|
|
a:aa 1
|
|
b:bb:bbb
|
|
|
|
2010/1/1 y
|
|
a:aa 1
|
|
b:bb:bbb
|
|
|
|
2010/1/2 z
|
|
a:aa 1
|
|
b:bb:bbb
|
|
>>>
|
|
2010/01/01 x a:aa 1 1
|
|
2010/01/01 y a:aa 1 2
|
|
2010/01/02 z a:aa 1 3
|
|
>>>=0
|
|
|
|
# 3. as above, but with a reporting interval causing postings to be aggregated
|
|
bin/hledger -f - register aa --depth 1 --daily
|
|
<<<
|
|
2010/1/1 x
|
|
a:aa 1
|
|
b:bb:bbb
|
|
|
|
2010/1/1 y
|
|
a:aa 1
|
|
b:bb:bbb
|
|
|
|
2010/1/2 z
|
|
a:aa 1
|
|
b:bb:bbb
|
|
>>>
|
|
2010/01/01 - 2010/01/01 a 2 2
|
|
2010/01/02 - 2010/01/02 a 1 3
|
|
>>>=0
|
|
|
|
# 4. with --cleared
|
|
bin/hledger -f - register a --depth 1 --cleared
|
|
<<<
|
|
2012/1/1 *
|
|
(a:aa) 1
|
|
>>>
|
|
2012/01/01 (a) 1 1
|
|
>>>2
|
|
>>>=0
|