clerk/journal/parser/testdata/transaction_with_balance_assignment.txtar (view raw)
Oleksandr Smirnov
Oleksandr Smirnov
olexsmir@gmail.com add support of subdirectives and it's highlights, 1 month ago
olexsmir@gmail.com add support of subdirectives and it's highlights, 1 month ago
| 1 | -- input -- |
| 2 | 2024-01-15 t |
| 3 | a $0 := $100 |
| 4 | |
| 5 | -- expect -- |
| 6 | Journal |
| 7 | Transaction j:1:1-4:0 |
| 8 | Date: 2024-01-15 |
| 9 | Payee: "t" j:1:12-2:0 |
| 10 | Posting j:2:1-4:0 |
| 11 | Account j:2:5-2:6 |
| 12 | SubAccount: "a" j:2:5-2:6 |
| 13 | Amount j:2:8-2:10 |
| 14 | Quantity: 0 |
| 15 | Commodity: "$" j:2:8-2:9 |
| 16 | CommodityPos: Before |
| 17 | HasSpace: false |
| 18 | Precision: 0 |
| 19 | BalanceAssertion j:2:12-3:0 |
| 20 | IsStrict: false |
| 21 | IsInclusive: false |
| 22 | IsAssignment: true |
| 23 | Amount j:2:14-3:0 |
| 24 | Quantity: 100 |
| 25 | Commodity: "$" j:2:14-2:15 |
| 26 | CommodityPos: Before |
| 27 | HasSpace: false |
| 28 | Precision: 0 |
| 29 | BlankLine j:4:0-4:1 |