Merge branch 'ticket-updateStats' into develop
This commit is contained in:
commit
b8c3c3117d
@ -260,7 +260,7 @@ class AdminStatsLogistic extends AdminTab {
|
||||
}
|
||||
echo '<tbody>
|
||||
</table>';
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function getStats() {
|
||||
@ -293,7 +293,8 @@ class AdminStatsLogistic extends AdminTab {
|
||||
return Db::getInstance()->getValue('
|
||||
SELECT COUNT(o.`id_order`)
|
||||
FROM `'._DB_PREFIX_.'orders` o
|
||||
WHERE (o.`date_add` BETWEEN DATE_SUB("'.pSQL($this->date_stock).'",INTERVAL '.(int)$day.' DAY) AND "'.pSQL($this->date_stock).'")
|
||||
WHERE (o.`date_add` BETWEEN DATE_SUB("'.pSQL($this->date_stock).'",INTERVAL '.(int)($day).' DAY) AND DATE_SUB("'.pSQL($this->date_stock).'",INTERVAL '.(int)($day-1).' DAY))
|
||||
-- (o.`date_add` BETWEEN DATE_SUB("'.pSQL($this->date_stock).'",INTERVAL '.(int)$day.' DAY) AND "'.pSQL($this->date_stock).'")
|
||||
AND
|
||||
(
|
||||
SELECT id_order_state
|
||||
|
Loading…
Reference in New Issue
Block a user