clerk/journal/parser/testdata/D_directive.txtar (view raw)
| 1 | -- input -- |
| 2 | D $1.00 |
| 3 | D 10 UAH |
| 4 | -- expect -- |
| 5 | Journal |
| 6 | DefaultCommodityDirective j:1:1-2:1 |
| 7 | Amount j:1:3-1:3 |
| 8 | Quantity: 1 |
| 9 | Commodity: "$" |
| 10 | CommodityPos: Before |
| 11 | HasSpace: false |
| 12 | Precision: 2 |
| 13 | Decimal: "." |
| 14 | DefaultCommodityDirective j:2:1-3:1 |
| 15 | Amount j:2:3-2:3 |
| 16 | Quantity: 10 |
| 17 | Commodity: "UAH" |
| 18 | CommodityPos: After |
| 19 | HasSpace: true |
| 20 | Precision: 0 |
| 21 | Decimal: "." |