// Stock : updated stock{cover, mvt, instant_state}controllers

This commit is contained in:
bMancone
2011-11-09 16:03:51 +00:00
parent baeaf2dee6
commit 469a2f6ed4
9 changed files with 177 additions and 58 deletions
@@ -101,7 +101,7 @@ class AdminStockCoverControllerCore extends AdminController
$lang_id = (int)$this->context->language->id;
$product_id = (int)Tools::getValue('id');
$period = (Tools::getValue('period') ? (int)Tools::getValue('period') : 7);
$warehouse = (Tools::getValue('warehouse') ? (int)Tools::getValue('warehouse') : -1);
$warehouse = (Tools::getValue('id_warehouse') ? (int)Tools::getValue('id_warehouse') : -1);
$query = '
SELECT a.id_product_attribute as id, a.id_product, a.reference, a.ean13,
@@ -229,8 +229,8 @@ class AdminStockCoverControllerCore extends AdminController
if ($warehouse == 0)
{
$warehouse = -1; // all warehouses
if ((int)Tools::getValue('coverage_warehouse'))
$warehouse = (int)Tools::getValue('coverage_warehouse');
if ((int)Tools::getValue('id_warehouse'))
$warehouse = (int)Tools::getValue('id_warehouse');
}
return $warehouse;
}