// Improved filters

This commit is contained in:
bMancone
2012-03-06 13:35:05 +00:00
parent d86f601bec
commit 3aef2ec94b
4 changed files with 70 additions and 4 deletions
@@ -158,9 +158,12 @@ class AdminStockMvtControllerCore extends AdminController
$this->_group = 'GROUP BY a.id_stock_mvt';
// overrides where depending on the warehouse
$id_warehouse = $this->getCurrentWarehouseId();
$id_warehouse = (int)$this->getCurrentWarehouseId();
if ($id_warehouse > 0)
{
$this->_where = ' AND w.id_warehouse = '.$id_warehouse;
self::$currentIndex .= '&id_warehouse='.$id_warehouse;
}
// sets the current warehouse
$this->tpl_list_vars['current_warehouse'] = $this->getCurrentWarehouseId();