hledger/hledger/test/timedot.test
Simon Michael bbecd611f1 imp: timedot: make one multi-posting transaction per date line (#1754)
Descriptions and comments are now more straightforward and similar to
journal format.
2023-05-03 19:18:35 -10:00

45 lines
1.5 KiB
Plaintext

# timedot format
<
# sample.timedot
# This is a comment line
; Also a comment line
* Org headings before the first date are also comment lines
2023-01-01 transaction description
biz:research ....
inc:client1 .... ..
2023-01-01 different transaction, same day ; with a comment and transaction-tag:
; more transaction comment lines ? currently ignored
fos:haskell .... ; a posting comment and posting-tag:
; more posting comment lines ? currently ignored
per:admin ....
** 2023-01-02 ; dates are allowed to be org headings
# 1. The above timedot is converted to these transactions.
$ hledger -ftimedot:- print
2023-01-01 * transaction description
(biz:research) 1.00
(inc:client1) 1.50
2023-01-01 * different transaction, same day ; with a comment and transaction-tag:
(fos:haskell) 1.00 ; a posting comment and posting-tag:
(per:admin) 1.00
2023-01-02 * ; dates are allowed to be org headings
>=
# 2. And this register.
$ hledger -ftimedot:- reg
2023-01-01 transaction descr.. (biz:research) 1.00 1.00
(inc:client1) 1.50 2.50
2023-01-01 different transac.. (fos:haskell) 1.00 3.50
(per:admin) 1.00 4.50
# 3. Tags are recognised. Account aliases are applied.
$ hledger -ftimedot:- reg tag:posting-tag --alias fos:haskell=λ
2023-01-01 different transac.. (λ) 1.00 1.00