// Added warning in SupplyOrdersController if there is not a least one warehouse

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12830 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2012-01-31 09:25:27 +00:00
parent 2901a2c80e
commit 8d60520f15
2 changed files with 190 additions and 189 deletions
@@ -408,6 +408,9 @@ class AdminSupplyOrdersControllerCore extends AdminController
$this->displayInformation($this->l('This interface allows you to manage supply orders.').'<br />');
$this->displayInformation($this->l('Also, you can create templates that you can later use to generate actual orders.').'<br />');
if (count($this->warehouses) <= 1)
$this->displayWarning($this->l('You must have at least one warehouse before creating supply orders. See Stock/Warehouses'));
// assigns warehouses
$this->tpl_list_vars['warehouses'] = $this->warehouses;
$this->tpl_list_vars['current_warehouse'] = $this->getCurrentWarehouse();