Update inventory.php
This commit is contained in:
parent
e87d175041
commit
1136e7dec5
@ -254,7 +254,7 @@ if (empty($reshook)) {
|
||||
$error++;
|
||||
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Product")), null, 'errors');
|
||||
}
|
||||
if (GETPOST('qtytoadd') < 0) {
|
||||
if (price2num(GETPOST('qtytoadd'), 'MS') < 0) {
|
||||
$error++;
|
||||
setEventMessages($langs->trans("FieldCannotBeNegative", $langs->transnoentitiesnoconv("RealQty")), null, 'errors');
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user