clerk/journal/printer/testdata/directives.txtar (view raw)
| 1 | -- input -- |
| 2 | ; Directives |
| 3 | account Assets:Cash ; cash account |
| 4 | commodity $ |
| 5 | commodity UAH |
| 6 | commodity 1000.00 USD |
| 7 | commodity $1000.00 |
| 8 | commodity 1,000.00 UAH |
| 9 | include ./other.journal |
| 10 | include ../one../another.journal |
| 11 | alias Assets:Checking = Assets:Cash |
| 12 | payee "Test Payee" |
| 13 | tag "important" |
| 14 | tag something-else |
| 15 | year 2026 |
| 16 | decimal-mark , |
| 17 | |
| 18 | ; Market price |
| 19 | P 2026/01/15 12:00:00 GOOG $150.00 |
| 20 | |
| 21 | ; Conversion |
| 22 | C 100.00$ = 85.00€ ; test comment |
| 23 | |
| 24 | ; Default commodity |
| 25 | D $1,000.00 |
| 26 | |
| 27 | ; N directive |
| 28 | N $ |
| 29 | |
| 30 | ; Apply/end |
| 31 | apply account Expenses |
| 32 | end |
| 33 | |
| 34 | ; Comment block |
| 35 | comment |
| 36 | Some notes about the file |
| 37 | end comment |
| 38 | |
| 39 | -- expect -- |
| 40 | ; Directives |
| 41 | account Assets:Cash ; cash account |
| 42 | commodity $ |
| 43 | commodity UAH |
| 44 | commodity 1000.00 USD |
| 45 | commodity $1000.00 |
| 46 | commodity 1,000.00 UAH |
| 47 | include ./other.journal |
| 48 | include ../one../another.journal |
| 49 | alias Assets:Checking = Assets:Cash |
| 50 | payee "Test Payee" |
| 51 | tag important |
| 52 | tag something-else |
| 53 | year 2026 |
| 54 | decimal-mark , |
| 55 | |
| 56 | ; Market price |
| 57 | P 2026-01-15 12:00:00 GOOG 150.00$ |
| 58 | |
| 59 | ; Conversion |
| 60 | C 100.00$ = 85.00€ ; test comment |
| 61 | |
| 62 | ; Default commodity |
| 63 | D 1,000.00$ |
| 64 | |
| 65 | ; N directive |
| 66 | N $ |
| 67 | ; Apply/end |
| 68 | apply account Expenses |
| 69 | end |
| 70 | |
| 71 | ; Comment block |
| 72 | comment |
| 73 | Some notes about the file |
| 74 | end |