hledger/hledger/test/timedot.test
Simon Michael 94b3f090be csv, timedot, timeclock: respect --alias options (fix #859)
Command-line account aliases now also affect transactions read
from these formats (not just journal format).

lib: journalApplyAliases, transactionApplyAliases, postingApplyAliases
helpers have been added.
2020-11-24 09:17:01 -08:00

38 lines
544 B
Plaintext

# Note since 1.17 we need to specify stdin's format explicitly.
# 1. basic timedot entry
<
# comment
; another comment
2020-01-01
a:aa 1
b:bb 2
$ hledger -ftimedot:- print
2020-01-01 *
(a:aa) 1.00
2020-01-01 *
(b:bb) 2.00
>=0
# 2. Org mode headline prefixes are ignored.
<
* 2020-01-01
** a:aa 1
$ hledger -ftimedot:- print
2020-01-01 *
(a:aa) 1.00
>=0
# 3. Command-line account aliases are applied.
$ hledger -ftimedot:- print --alias a=b
2020-01-01 *
(b:aa) 1.00
>=0