clerk/journal/parser/testdata/virtual_postings_with_statuses.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/01 test |
| 3 | ! (assets:cash) $10 |
| 4 | (income:gift) $-10 |
| 5 | |
| 6 | 2024/01/01 test |
| 7 | (! assets:cash) $10 |
| 8 | (income:gift) $-10 |
| 9 | |
| 10 | 2024/01/01 test |
| 11 | ! (! assets:cash) $10 |
| 12 | (* income:gift) $-10 |
| 13 | -- expect -- |
| 14 | Journal |
| 15 | Transaction j:1:1-5:0 |
| 16 | Date: 2024/01/01 |
| 17 | Payee: "test" j:1:12-2:0 |
| 18 | Posting j:2:1-3:1 |
| 19 | Type: unbalanced virtual |
| 20 | Status: "!" |
| 21 | Account j:2:6-2:17 |
| 22 | SubAccount: "assets" j:2:6-2:12 |
| 23 | SubAccount: "cash" j:2:13-2:17 |
| 24 | Amount j:2:20-3:0 |
| 25 | Quantity: 10 |
| 26 | Commodity: "$" j:2:20-2:21 |
| 27 | CommodityPos: Before |
| 28 | HasSpace: false |
| 29 | Precision: 0 |
| 30 | Posting j:3:1-5:0 |
| 31 | Type: unbalanced virtual |
| 32 | Account j:3:4-3:15 |
| 33 | SubAccount: "income" j:3:4-3:10 |
| 34 | SubAccount: "gift" j:3:11-3:15 |
| 35 | Amount j:3:18-4:0 |
| 36 | Quantity: -10 |
| 37 | Commodity: "$" j:3:18-3:19 |
| 38 | CommodityPos: Before |
| 39 | HasSpace: false |
| 40 | Precision: 0 |
| 41 | BlankLine j:5:0-5:1 |
| 42 | Transaction j:5:1-9:0 |
| 43 | Date: 2024/01/01 |
| 44 | Payee: "test" j:5:12-6:0 |
| 45 | Posting j:6:1-7:1 |
| 46 | Type: unbalanced virtual |
| 47 | Status: "!" |
| 48 | Account j:6:8-6:19 |
| 49 | SubAccount: "assets" j:6:8-6:14 |
| 50 | SubAccount: "cash" j:6:15-6:19 |
| 51 | Amount j:6:22-7:0 |
| 52 | Quantity: 10 |
| 53 | Commodity: "$" j:6:22-6:23 |
| 54 | CommodityPos: Before |
| 55 | HasSpace: false |
| 56 | Precision: 0 |
| 57 | Posting j:7:1-9:0 |
| 58 | Type: unbalanced virtual |
| 59 | Account j:7:6-7:17 |
| 60 | SubAccount: "income" j:7:6-7:12 |
| 61 | SubAccount: "gift" j:7:13-7:17 |
| 62 | Amount j:7:20-8:0 |
| 63 | Quantity: -10 |
| 64 | Commodity: "$" j:7:20-7:21 |
| 65 | CommodityPos: Before |
| 66 | HasSpace: false |
| 67 | Precision: 0 |
| 68 | BlankLine j:9:0-9:1 |
| 69 | Transaction j:9:1-12:1 |
| 70 | Date: 2024/01/01 |
| 71 | Payee: "test" j:9:12-10:0 |
| 72 | Posting j:10:1-11:1 |
| 73 | Type: unbalanced virtual |
| 74 | Status: "!" |
| 75 | Account j:10:10-10:21 |
| 76 | SubAccount: "assets" j:10:10-10:16 |
| 77 | SubAccount: "cash" j:10:17-10:21 |
| 78 | Amount j:10:24-11:0 |
| 79 | Quantity: 10 |
| 80 | Commodity: "$" j:10:24-10:25 |
| 81 | CommodityPos: Before |
| 82 | HasSpace: false |
| 83 | Precision: 0 |
| 84 | Posting j:11:1-12:1 |
| 85 | Type: unbalanced virtual |
| 86 | Status: "*" |
| 87 | Account j:11:8-11:19 |
| 88 | SubAccount: "income" j:11:8-11:14 |
| 89 | SubAccount: "gift" j:11:15-11:19 |
| 90 | Amount j:11:22-12:0 |
| 91 | Quantity: -10 |
| 92 | Commodity: "$" j:11:22-11:23 |
| 93 | CommodityPos: Before |
| 94 | HasSpace: false |
| 95 | Precision: 0 |