mirror of
https://github.com/MarkusZoppelt/stahl.git
synced 2026-11-28 13:02:13 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
The form parsed with `str::parse::<f64>`, so a decimal comma or thousands separator was refused with "Quantity and price must be numbers.", which named neither the field nor the reason. `1.000` was silently read as 1, where a German reader means 1000. `parse_number` now accepts `.` or `,` as the decimal mark, and thousands separators, when only one reading is possible. A lone mark with exactly three digits after up to three others could be off by a thousand, so it is refused with both readings spelled out. The edit form shows `12.345` as `12.3450` so that it still reads back. Errors name the field and the reason, and only that field is marked invalid. Negative quantities and prices are refused: a negative quantity used to drop the purchase silently. |
||
| .. | ||
| e2e.rs | ||