// Stock : fixed/improved interfaces

This commit is contained in:
bMancone
2011-11-16 13:01:16 +00:00
parent c8e10407a3
commit 4e10ecb364
3 changed files with 8 additions and 10 deletions
+2 -2
View File
@@ -562,7 +562,7 @@ class StockManagerCore implements StockManagerInterface
// gets all stock_mvt for the given coverage period
$query = '
SELECT SUM(quantity) as quantity_out
SELECT SUM(view.quantity) as quantity_out
FROM
( SELECT sm.`physical_quantity` as quantity
FROM `'._DB_PREFIX_.'stock_mvt` sm
@@ -576,7 +576,7 @@ class StockManagerCore implements StockManagerInterface
AND s.`id_product_attribute` = '.(int)$id_product_attribute.
($id_warehouse ? ' AND s.`id_warehouse` = '.(int)$id_warehouse : '').'
GROUP BY sm.`id_stock_mvt`
) as sq';
) as view';
$quantity_out = Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query);
if (!$quantity_out)
@@ -64,16 +64,18 @@ class AdminStockCoverControllerCore extends AdminController
'filter_key' => 'b!name'
),
'coverage' => array(
'title' => $this->l('Average time left'),
'width' => 150,
'title' => $this->l('Coverage'),
'width' => 160,
'orderby' => false,
'search' => false
'search' => false,
'hint' => $this->l('Days left before you run out of stock.')
),
'stock' => array(
'title' => $this->l('Quantity'),
'width' => 80,
'orderby' => false,
'search' => false
'search' => false,
'hint' => $this->l('Physical (usable) quantity.')
),
);
@@ -284,10 +284,6 @@ class AdminStockMvtControllerCore extends AdminController
'width' => 250,
'havingFilter' => true
),
'id_order' => array(
'title' => $this->l('Supply Order'),
'width' => 40
),
'employee' => array(
'title' => $this->l('Employee'),
'width' => 100,