clerk/journal/parser/testdata/transaction_with_balance_assertion.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 | Transaction j:1:1-5:0 |
| 3 | Date: 2024/01/01 |
| 4 | Payee: "groceries" j:1:12-2:0 |
| 5 | Posting j:2:1-3:1 |
| 6 | Account j:2:2-2:15 |
| 7 | SubAccount: "expenses" j:2:2-2:10 |
| 8 | SubAccount: "food" j:2:11-2:15 |
| 9 | Amount j:2:17-2:17 |
| 10 | Quantity: 10 |
| 11 | Commodity: "$" |
| 12 | CommodityPos: Before |
| 13 | HasSpace: false |
| 14 | Precision: 2 |
| 15 | Decimal: "." |
| 16 | BalanceAssertion j:2:24-3:0 |
| 17 | IsStrict: false |
| 18 | IsInclusive: false |
| 19 | Amount j:2:26-2:26 |
| 20 | Quantity: 100 |
| 21 | Commodity: "$" |
| 22 | CommodityPos: Before |
| 23 | HasSpace: false |
| 24 | Precision: 2 |
| 25 | Decimal: "." |
| 26 | Posting j:3:1-5:0 |
| 27 | Account j:3:2-4:0 |
| 28 | SubAccount: "assets" j:3:2-3:8 |
| 29 | SubAccount: "checking" j:3:9-4:0 |
| 30 | Amount: <elided> |
| 31 | BlankLine j:5:0-5:1 |
| 32 | Transaction j:5:1-9:0 |
| 33 | Date: 2025/03/07 |
| 34 | Payee: "groceries2" j:5:12-6:0 |
| 35 | Posting j:6:1-7:1 |
| 36 | Account j:6:2-6:15 |
| 37 | SubAccount: "expenses" j:6:2-6:10 |
| 38 | SubAccount: "food" j:6:11-6:15 |
| 39 | Amount j:6:17-6:17 |
| 40 | Quantity: 10 |
| 41 | Commodity: "$" |
| 42 | CommodityPos: Before |
| 43 | HasSpace: false |
| 44 | Precision: 2 |
| 45 | Decimal: "." |
| 46 | BalanceAssertion j:6:24-7:0 |
| 47 | IsStrict: true |
| 48 | IsInclusive: false |
| 49 | Amount j:6:27-6:27 |
| 50 | Quantity: 100 |
| 51 | Commodity: "$" |
| 52 | CommodityPos: Before |
| 53 | HasSpace: false |
| 54 | Precision: 2 |
| 55 | Decimal: "." |
| 56 | Posting j:7:1-9:0 |
| 57 | Account j:7:2-7:17 |
| 58 | SubAccount: "assets" j:7:2-7:8 |
| 59 | SubAccount: "checking" j:7:9-7:17 |
| 60 | Amount: <elided> |
| 61 | BalanceAssertion j:7:19-8:0 |
| 62 | IsStrict: true |
| 63 | IsInclusive: false |
| 64 | Amount j:7:22-7:22 |
| 65 | Quantity: 0 |
| 66 | Commodity: "$" |
| 67 | CommodityPos: Before |
| 68 | HasSpace: false |
| 69 | Precision: 2 |
| 70 | Decimal: "." |
| 71 | BlankLine j:9:0-9:1 |
| 72 | Transaction j:9:1-12:1 |
| 73 | Date: 2025/04/08 |
| 74 | Payee: "groceries3" j:9:12-10:0 |
| 75 | Posting j:10:1-11:1 |
| 76 | Account j:10:2-10:15 |
| 77 | SubAccount: "expenses" j:10:2-10:10 |
| 78 | SubAccount: "food" j:10:11-10:15 |
| 79 | Amount j:10:17-10:17 |
| 80 | Quantity: 10 |
| 81 | Commodity: "$" |
| 82 | CommodityPos: Before |
| 83 | HasSpace: false |
| 84 | Precision: 2 |
| 85 | Decimal: "." |
| 86 | Posting j:11:1-12:1 |
| 87 | Account j:11:2-11:17 |
| 88 | SubAccount: "assets" j:11:2-11:8 |
| 89 | SubAccount: "checking" j:11:9-11:17 |
| 90 | Amount: <elided> |
| 91 | BalanceAssertion j:11:19-12:0 |
| 92 | IsStrict: false |
| 93 | IsInclusive: false |
| 94 | Amount j:11:21-11:21 |
| 95 | Quantity: 0 |
| 96 | Commodity: "$" |
| 97 | CommodityPos: Before |
| 98 | HasSpace: false |
| 99 | Precision: 2 |
| 100 | Decimal: "." |