[-] BO: Synchronize stock available after receipt supply order items #PSCFV-10724

This commit is contained in:
Rémi Gaillard
2013-10-23 10:34:00 +02:00
parent ae63336a37
commit 6cddb57ce3
@@ -1387,7 +1387,9 @@ class AdminSupplyOrdersControllerCore extends AdminController
true,
$supply_order->id);
if (!$res)
if ($res)
StockAvailable::synchronize($supply_order_detail->id_product);
else
$this->errors[] = Tools::displayError($this->l('Something went wrong when adding products to the warehouse.'));
$location = Warehouse::getProductLocation($supply_order_detail->id_product,