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

This commit is contained in:
Rémi Gaillard committed 2013-10-23 10:34:00 +02:00
1 parent ae63336a37
commit 6cddb57ce3
1 file changed
+3 -1
@@ -1387,7 +1387,9 @@ class AdminSupplyOrdersControllerCore extends AdminController
true, true,
$supply_order->id); $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.')); $this->errors[] = Tools::displayError($this->l('Something went wrong when adding products to the warehouse.'));
$location = Warehouse::getProductLocation($supply_order_detail->id_product, $location = Warehouse::getProductLocation($supply_order_detail->id_product,