clerk/journal/parser/testdata/transaction_with_spaced_account_name.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 | 2022-01-01 opening balances |
| 3 | assets 21 = 21 |
| 4 | equity:opening/closing balances |
| 5 | |
| 6 | -- expect -- |
| 7 | Journal |
| 8 | Transaction j:1:1-5:0 |
| 9 | Date: 2022-01-01 |
| 10 | Payee: "opening balances" j:1:12-2:0 |
| 11 | Posting j:2:1-3:1 |
| 12 | Account j:2:5-2:11 |
| 13 | SubAccount: "assets" j:2:5-2:11 |
| 14 | Amount j:2:31-2:34 |
| 15 | Quantity: 21 |
| 16 | Commodity: "" |
| 17 | CommodityPos: Before |
| 18 | HasSpace: false |
| 19 | Precision: 0 |
| 20 | Decimal: "." |
| 21 | BalanceAssertion j:2:34-3:0 |
| 22 | IsStrict: false |
| 23 | IsInclusive: false |
| 24 | IsAssignment: false |
| 25 | Amount j:2:36-3:0 |
| 26 | Quantity: 21 |
| 27 | Commodity: "" |
| 28 | CommodityPos: Before |
| 29 | HasSpace: false |
| 30 | Precision: 0 |
| 31 | Decimal: "." |
| 32 | Posting j:3:1-5:0 |
| 33 | Account j:3:5-4:0 |
| 34 | SubAccount: "equity" j:3:5-3:11 |
| 35 | SubAccount: "opening/closing balances" j:3:12-4:0 |
| 36 | Amount: <elided> |
| 37 | BlankLine j:5:0-5:1 |