// Fix stats queries

This commit is contained in:
rMalie committed 2011-07-06 16:17:27 +00:00
1 parent 5bc9e9e9ef
commit 1c7225b4dc
8 files changed
+15 -14

No files matched your search

@@ -135,7 +135,7 @@ class StatsBestManufacturers extends ModuleGrid
LEFT JOIN '._DB_PREFIX_.'currency c ON (c.id_currency = o.id_currency)
LEFT JOIN '._DB_PREFIX_.'manufacturer m ON (m.id_manufacturer = p.id_manufacturer)
WHERE '.$this->sqlShopRestriction(false, 'o').'
o.invoice_date BETWEEN '.$this->getDate().'
AND o.invoice_date BETWEEN '.$this->getDate().'
AND o.valid = 1
AND m.id_manufacturer IS NOT NULL
GROUP BY p.id_manufacturer';