clerk/internal/linter/testdata/multiple-omitted-amounts.txtar (view raw)
Oleksandr Smirnov
Oleksandr Smirnov
olexsmir@gmail.com test: add some missing test cases, 2 months ago
olexsmir@gmail.com test: add some missing test cases, 2 months ago
| 1 | -- in.journal -- |
| 2 | 2025-01-01 "two omitted amounts" |
| 3 | Expenses:Food |
| 4 | Expenses:Fun |
| 5 | Assets:Cash 100 USD |
| 6 | |
| 7 | 2025-01-02 "three omitted amounts" |
| 8 | Expenses:Food |
| 9 | Expenses:Fun |
| 10 | Expenses:Play |
| 11 | Assets:Cash 100 USD |
| 12 | Equity:Opening-Balances |
| 13 | |
| 14 | 2025-01-03 "one omitted amount (ok)" |
| 15 | Expenses:Food 50 USD |
| 16 | Assets:Cash |
| 17 | |
| 18 | 2025-01-04 "all have amounts (ok)" |
| 19 | Expenses:Food 50 USD |
| 20 | Assets:Cash 50 USD |
| 21 | |
| 22 | 2025-01-05 * reconcile or some s..stuff |
| 23 | Assets:Bank = 1.69 UAH |
| 24 | Assets:Cash = 2.00 UAH |
| 25 | |
| 26 | ~ montly |
| 27 | Income:Job $1000 |
| 28 | Assets:Cash |
| 29 | Assets:Bank |
| 30 | |
| 31 | ~ montly |
| 32 | Income:Job $1000 |
| 33 | Assets:Bank |
| 34 | |
| 35 | -- expect -- |
| 36 | in.journal:2:1: multiple-omitted-amounts: more than one posting has omitted amount |
| 37 | in.journal:3:1: multiple-omitted-amounts: more than one posting has omitted amount |
| 38 | in.journal:7:1: multiple-omitted-amounts: more than one posting has omitted amount |
| 39 | in.journal:8:1: multiple-omitted-amounts: more than one posting has omitted amount |
| 40 | in.journal:9:1: multiple-omitted-amounts: more than one posting has omitted amount |
| 41 | in.journal:11:1: multiple-omitted-amounts: more than one posting has omitted amount |
| 42 | in.journal:27:1: multiple-omitted-amounts: more than one posting has omitted amount |
| 43 | in.journal:28:1: multiple-omitted-amounts: more than one posting has omitted amount |