// Stock : updated stock{cover, mvt, instant_state}controllers
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user