// StockAvailable: updated synchronize() and updated its usage within the different stock controllers when necessary

This commit is contained in:
bMancone
2011-11-21 11:01:33 +00:00
parent 9426e5d883
commit 3c1fa76032
8 changed files with 165 additions and 124 deletions
@@ -1271,6 +1271,8 @@ class AdminSupplyOrdersControllerCore extends AdminController
$supplier_receipt_history->add();
$supply_order_detail->save();
$supply_order->save();
// synchronizes
StockAvailable::synchronize($id_product);
}
else
$this->_errors[] = Tools::displayError($this->l('Something went wrong when adding products in warehouse'));