clerk/journal/parser/testdata/transaction_with_balance_assignment.txtar (view raw)
Oleksandr Smirnov
Oleksandr Smirnov
olexsmir@gmail.com syntax: respect commodity format; =*; ===; :=, 2 months ago
olexsmir@gmail.com syntax: respect commodity format; =*; ===; :=, 2 months 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 | Decimal: "." |
| 20 | BalanceAssertion j:2:12-3:0 |
| 21 | IsStrict: false |
| 22 | IsInclusive: false |
| 23 | IsAssignment: true |
| 24 | Amount j:2:14-3:0 |
| 25 | Quantity: 100 |
| 26 | Commodity: "$" j:2:14-2:15 |
| 27 | CommodityPos: Before |
| 28 | HasSpace: false |
| 29 | Precision: 0 |
| 30 | Decimal: "." |
| 31 | BlankLine j:4:0-4:1 |