stahl/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Markus Zoppelt 5d10456634 fix: read numbers in the position form without guessing
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.
2026-11-06 20:13:33 +01:00
..
e2e.rs fix: read numbers in the position form without guessing 2026-11-06 20:13:33 +01:00