2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-16 12:15:31 +00:00
This commit is contained in:
Asterix\Oliver
2025-06-14 11:07:14 +10:00
parent 387dc1eb39
commit 65edbb9cda
2 changed files with 6 additions and 3 deletions

View File

@ -199,8 +199,9 @@ class QuantityField extends TextFormField {
double quantity = double.tryParse(value.toString()) ?? 0;
if (quantity <= 0) return L10().quantityPositive;
if ((max != null) && (quantity > max))
if ((max != null) && (quantity > max)) {
return "Quantity must not exceed ${max}";
}
return null;
},