clerk/journal/parser/testdata/period_transaction_expressions.golden (view raw)
Oleksandr Smirnov
Oleksandr Smirnov
olexsmir@gmail.com parser: separate account names by :, 1 month ago
olexsmir@gmail.com parser: separate account names by :, 1 month ago
| 1 | Journal |
| 2 | BlankLine j:2:0-2:1 |
| 3 | PeriodicTransaction j:2:1-2:3 |
| 4 | Period: "monthly" |
| 5 | Posting j:3:1-4:1 |
| 6 | Account j:3:5-3:18 |
| 7 | SubAccount: "expenses" j:3:5-3:13 |
| 8 | SubAccount: "rent" j:3:14-3:18 |
| 9 | Amount j:3:28-3:28 |
| 10 | Quantity: 2000 |
| 11 | Commodity: "$" |
| 12 | CommodityPos: Before |
| 13 | HasSpace: false |
| 14 | Precision: 0 |
| 15 | Decimal: "." |
| 16 | Posting j:4:1-6:0 |
| 17 | Account j:4:5-5:0 |
| 18 | SubAccount: "assets" j:4:5-4:11 |
| 19 | SubAccount: "bank" j:4:12-4:16 |
| 20 | SubAccount: "checking" j:4:17-5:0 |
| 21 | Amount: <elided> |
| 22 | BlankLine j:6:0-6:1 |
| 23 | PeriodicTransaction j:6:1-6:3 |
| 24 | Period: "monthly from 2023-04-15 to 2023-06-16" |
| 25 | From: 2023-04-15 |
| 26 | To: 2023-06-16 |
| 27 | Posting j:7:1-8:1 |
| 28 | Account j:7:5-7:23 |
| 29 | SubAccount: "expenses" j:7:5-7:13 |
| 30 | SubAccount: "utilities" j:7:14-7:23 |
| 31 | Amount j:7:33-7:33 |
| 32 | Quantity: 400 |
| 33 | Commodity: "$" |
| 34 | CommodityPos: Before |
| 35 | HasSpace: false |
| 36 | Precision: 0 |
| 37 | Decimal: "." |
| 38 | Posting j:8:1-10:0 |
| 39 | Account j:8:5-9:0 |
| 40 | SubAccount: "assets" j:8:5-8:11 |
| 41 | SubAccount: "bank" j:8:12-8:16 |
| 42 | SubAccount: "checking" j:8:17-9:0 |
| 43 | Amount: <elided> |
| 44 | BlankLine j:10:0-10:1 |
| 45 | PeriodicTransaction j:10:1-10:3 |
| 46 | Period: "every 2 months" |
| 47 | Description: "in 2023, we will review" |
| 48 | Posting j:11:1-12:1 |
| 49 | Account j:11:5-11:23 |
| 50 | SubAccount: "expenses" j:11:5-11:13 |
| 51 | SubAccount: "utilities" j:11:14-11:23 |
| 52 | Amount j:11:33-11:33 |
| 53 | Quantity: 400 |
| 54 | Commodity: "$" |
| 55 | CommodityPos: Before |
| 56 | HasSpace: false |
| 57 | Precision: 0 |
| 58 | Decimal: "." |
| 59 | Posting j:12:1-14:0 |
| 60 | Account j:12:5-13:0 |
| 61 | SubAccount: "assets" j:12:5-12:11 |
| 62 | SubAccount: "bank" j:12:12-12:16 |
| 63 | SubAccount: "checking" j:12:17-13:0 |
| 64 | Amount: <elided> |
| 65 | BlankLine j:14:0-14:1 |
| 66 | PeriodicTransaction j:14:1-14:3 |
| 67 | Period: "monthly" |
| 68 | Description: "Next year blah blah" |
| 69 | Posting j:15:1-16:1 |
| 70 | Account j:15:5-15:18 |
| 71 | SubAccount: "expenses" j:15:5-15:13 |
| 72 | SubAccount: "food" j:15:14-15:18 |
| 73 | Amount j:15:20-15:20 |
| 74 | Quantity: 100 |
| 75 | Commodity: "$" |
| 76 | CommodityPos: Before |
| 77 | HasSpace: false |
| 78 | Precision: 0 |
| 79 | Decimal: "." |
| 80 | Posting j:16:1-18:0 |
| 81 | Account j:16:5-17:0 |
| 82 | SubAccount: "assets" j:16:5-16:11 |
| 83 | SubAccount: "checking" j:16:12-17:0 |
| 84 | Amount: <elided> |
| 85 | BlankLine j:18:0-18:1 |
| 86 | PeriodicTransaction j:18:1-18:3 |
| 87 | Period: "monthly from 2018/6" |
| 88 | Comment j:18:23-19:0 |
| 89 | Marker: ";" |
| 90 | Text: "In 2019 we will change this" |
| 91 | Posting j:19:1-20:1 |
| 92 | Account j:19:5-19:18 |
| 93 | SubAccount: "expenses" j:19:5-19:13 |
| 94 | SubAccount: "food" j:19:14-19:18 |
| 95 | Amount j:19:20-19:20 |
| 96 | Quantity: 100 |
| 97 | Commodity: "$" |
| 98 | CommodityPos: Before |
| 99 | HasSpace: false |
| 100 | Precision: 0 |
| 101 | Decimal: "." |
| 102 | Posting j:20:1-21:1 |
| 103 | Account j:20:5-21:0 |
| 104 | SubAccount: "assets" j:20:5-20:11 |
| 105 | SubAccount: "checking" j:20:12-21:0 |
| 106 | Amount: <elided> |