// AdminSupplierOrdersController : updated quantity received
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9934 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
fa7c508114
commit
9e234492f7
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