// correction translation
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15872 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -681,7 +681,7 @@ class AdminStockManagementControllerCore extends AdminController
|
||||
$usable_quantity_in_stock = (int)$stock_manager->getProductPhysicalQuantities($id_product, $id_product_attribute, array($warehouse->id), true);
|
||||
$not_usable_quantity = ($physical_quantity_in_stock - $usable_quantity_in_stock);
|
||||
if ($usable_quantity_in_stock < $quantity)
|
||||
$this->errors[] = sprintf(Tools::displayError('You don\'t have enough usable quantity (usable or not). Could not remove %d out of %d.'), (int)$quantity, (int)$usable_quantity_in_stock);
|
||||
$this->errors[] = sprintf(Tools::displayError('You don\'t have enough usable quantity. Could not remove %d out of %d.'), (int)$quantity, (int)$usable_quantity_in_stock);
|
||||
else if ($not_usable_quantity < $quantity)
|
||||
$this->errors[] = sprintf(Tools::displayError('You don\'t have enough quantity (not usable). Could not remove %d out of %d.'), (int)$quantity, (int)$not_usable_quantity);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user