petit fix encore
This commit is contained in:
parent
1c0f7f8608
commit
cb3cca72c9
@ -396,7 +396,7 @@ class AdminStatsLogistic extends AdminTab {
|
|||||||
SELECT COUNT(o.`id_order`)
|
SELECT COUNT(o.`id_order`)
|
||||||
FROM `'._DB_PREFIX_.'orders` o
|
FROM `'._DB_PREFIX_.'orders` o
|
||||||
LEFT JOIN `'._DB_PREFIX_.'order_history` oh ON (oh.`id_order` = o.`id_order`)
|
LEFT JOIN `'._DB_PREFIX_.'order_history` oh ON (oh.`id_order` = o.`id_order`)
|
||||||
WHERE o.`date_add` < DATE_SUB("'.pSQL($this->date_stock).'",INTERVAL '.((int)$day+1).' DAY)
|
WHERE o.`date_add` < DATE_SUB("'.pSQL($this->date_stock).'",INTERVAL '.((int)$day-1).' DAY)
|
||||||
AND oh.`id_order_state` = '.(int)$state.'
|
AND oh.`id_order_state` = '.(int)$state.'
|
||||||
AND oh.`id_order_history` = (SELECT MAX(`id_order_history`) FROM `'._DB_PREFIX_.'order_history` moh WHERE moh.`id_order` = o.`id_order` GROUP BY moh.`id_order`)
|
AND oh.`id_order_history` = (SELECT MAX(`id_order_history`) FROM `'._DB_PREFIX_.'order_history` moh WHERE moh.`id_order` = o.`id_order` GROUP BY moh.`id_order`)
|
||||||
-- AND
|
-- AND
|
||||||
|
Loading…
Reference in New Issue
Block a user