clerk/journal/parser/testdata/transaction_with_code.txtar (view raw)
Oleksandr Smirnov
Oleksandr Smirnov
olexsmir@gmail.com fix: extraction of payee and code, 2 months ago
olexsmir@gmail.com fix: extraction of payee and code, 2 months ago
| 1 | -- input -- |
| 2 | 2024-01-01 (123) groceries |
| 3 | expenses:food $10.00 |
| 4 | assets:checking |
| 5 | -- expect -- |
| 6 | Journal |
| 7 | Transaction j:1:1-4:1 |
| 8 | Date: 2024-01-01 |
| 9 | Code: "123" j:1:12-1:17 |
| 10 | Payee: "groceries" j:1:18-2:0 |
| 11 | Posting j:2:1-3:1 |
| 12 | Account j:2:5-2:18 |
| 13 | SubAccount: "expenses" j:2:5-2:13 |
| 14 | SubAccount: "food" j:2:14-2:18 |
| 15 | Amount j:2:20-3:0 |
| 16 | Quantity: 10 |
| 17 | Commodity: "$" j:2:20-2:21 |
| 18 | CommodityPos: Before |
| 19 | HasSpace: false |
| 20 | Precision: 2 |
| 21 | Decimal: "." |
| 22 | Posting j:3:1-4:1 |
| 23 | Account j:3:5-4:0 |
| 24 | SubAccount: "assets" j:3:5-3:11 |
| 25 | SubAccount: "checking" j:3:12-4:0 |
| 26 | Amount: <elided> |