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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10331 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2011-11-21 11:01:33 +00:00
parent 0ce1e22813
commit 276f493dd7
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'));