From 04d7da802eb4688d6821374cc7cefa10827e3937 Mon Sep 17 00:00:00 2001 From: PrestaEdit Date: Thu, 11 Apr 2013 17:24:12 +0300 Subject: [PATCH] [-] Fix: copy paste a little too fast --- modules/statsbestvouchers/statsbestvouchers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/statsbestvouchers/statsbestvouchers.php b/modules/statsbestvouchers/statsbestvouchers.php index 0c76f94f0..ed8f38068 100644 --- a/modules/statsbestvouchers/statsbestvouchers.php +++ b/modules/statsbestvouchers/statsbestvouchers.php @@ -117,7 +117,7 @@ class StatsBestVouchers extends ModuleGrid public function getData() { - $this->_query = 'SELECT SQL_CALC_FOUND_ROWS cr.code, ocr.name, COUNT(ocr.id_cart_rule) as total, SUM(o.total_paid_real) / o.conversion_rate as ca + $this->_query = 'SELECT SQL_CALC_FOUND_ROWS cr.code, ocr.name, COUNT(ocr.id_cart_rule) as total, ROUND(SUM(o.total_paid_real) / o.conversion_rate) as ca FROM '._DB_PREFIX_.'order_cart_rule ocr LEFT JOIN '._DB_PREFIX_.'orders o ON o.id_order = ocr.id_order LEFT JOIN '._DB_PREFIX_.'cart_rule cr ON cr.id_cart_rule = ocr.id_cart_rule