// 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:
bMancone
2011-11-07 15:32:57 +00:00
parent fa7c508114
commit 9e234492f7
@@ -1110,7 +1110,7 @@ class AdminSupplierOrdersControllerCore extends AdminController
{
// checks if quantity is valid
// 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);
else // everything is valid : updates
{