// AdminSupplierOrdersController : updated quantity received
This commit is contained in:
1 parent
0347a3d090
commit
4a0b2cae60
1 file changed
+1
-1
@@ -1110,7 +1110,7 @@ class AdminSupplierOrdersControllerCore extends AdminController
|
|||||||
{
|
{
|
||||||
// checks if quantity is valid
|
// checks if quantity is valid
|
||||||
// It's possible to receive more quantity than expected in case of a shipping error from the supplier
|
// It's possible to receive more quantity than expected in case of a shipping error from the supplier
|
||||||
if (!Validate::isInt($quantity) || $quantity < 0)
|
if (!Validate::isInt($quantity) || $quantity <= 0)
|
||||||
$this->_errors[] = sprintf(Tools::displayError('Quantity (%d) for product #%d is not valid'), (int)$quantity, (int)$id_supplier_order_detail);
|
$this->_errors[] = sprintf(Tools::displayError('Quantity (%d) for product #%d is not valid'), (int)$quantity, (int)$id_supplier_order_detail);
|
||||||
else // everything is valid : updates
|
else // everything is valid : updates
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user