mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-15 17:48:59 +03:00
5c09553481
Related to #563, when rendering a transaction, we reserve two more chars of width so that amounts remain aligned when there are posting flags. Affects hledger-ui's transaction screen, print, hledger-rewrite etc.
38 lines
520 B
Plaintext
38 lines
520 B
Plaintext
# 1. print shows both primary and secondary dates. The second's year defaults to the first's.
|
|
hledger -f - print
|
|
<<<
|
|
2000/1/1=3/3
|
|
(a) 1
|
|
|
|
2000/1/2=2/2
|
|
(b) 1
|
|
|
|
>>>
|
|
2000/01/01=2000/03/03
|
|
(a) 1
|
|
|
|
2000/01/02=2000/02/02
|
|
(b) 1
|
|
|
|
>>>2
|
|
>>>= 0
|
|
|
|
# 2. With --date2, the secondary date is used for sorting.
|
|
hledger -f - print --date2
|
|
<<<
|
|
2000/1/1=3/3
|
|
(a) 1
|
|
|
|
2000/1/2=2/2
|
|
(b) 1
|
|
|
|
>>>
|
|
2000/01/02=2000/02/02
|
|
(b) 1
|
|
|
|
2000/01/01=2000/03/03
|
|
(a) 1
|
|
|
|
>>>2
|
|
>>>= 0
|