Merge branch 'ticket-updateStats' into develop

This commit is contained in:
Marion Muszynski 2016-05-23 13:15:19 +02:00
commit b8c3c3117d

View File

@ -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