From c385618fc298a055145101b0c05490bbbc0e8000 Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Mon, 4 Feb 2013 12:23:54 +0100 Subject: [PATCH 1/5] [-] MO : statsforecast fixed #PSCFV-7399 --- modules/statsforecast/statsforecast.php | 66 +++++++++++++------------ 1 file changed, 34 insertions(+), 32 deletions(-) diff --git a/modules/statsforecast/statsforecast.php b/modules/statsforecast/statsforecast.php index ffe86a176..d27f8c756 100644 --- a/modules/statsforecast/statsforecast.php +++ b/modules/statsforecast/statsforecast.php @@ -123,7 +123,8 @@ class StatsForecast extends Module $dataTable[$row['fix_date']] = $row; $this->_html .= '
-

'.$this->displayName.'

+
+

'.$this->displayName.'

'.$this->l('All amounts are without taxes.').'

@@ -300,30 +301,28 @@ class StatsForecast extends Module
-
- '.$this->l('Registered visitors').' - - '.round(100 * $orders / max(1, $customers), 2).' % - - '.$this->l('orders').' -
- -
-
- '.$this->l('Visitors').' - - '.round(100 * $orders / max(1, $visitors), 2).' % - - '.$this->l('orders').' - + '.$this->l('Registered visitors').' + + '.round(100 * $orders / max(1, $customers), 2).' % + + '.$this->l('orders').'
-
-

- '.$this->l('Turn your visitors into money:').' -
'.$this->l('Each visitor yields').' '.Tools::displayPrice($ca['ventil']['total'] / max(1, $visitors), $currency).'. -
'.$this->l('Each registered visitor yields').' '.Tools::displayPrice($ca['ventil']['total'] / max(1, $customers), $currency).'. -

'; +
+
+ '.$this->l('Visitors').' + + '.round(100 * $orders / max(1, $visitors), 2).' % + + '.$this->l('orders').' +
+
+

+ '.$this->l('Turn your visitors into money:').' +
'.$this->l('Each visitor yields').' '.Tools::displayPrice($ca['ventil']['total'] / max(1, $visitors), $currency).'. +
'.$this->l('Each registered visitor yields').' '.Tools::displayPrice($ca['ventil']['total'] / max(1, $customers), $currency).'. +

+
'; $from = strtotime($employee->stats_date_from.' 00:00:00'); $to = strtotime($employee->stats_date_to.' 23:59:59'); @@ -332,7 +331,10 @@ class StatsForecast extends Module $this->_html .= '
'; - $this->_html .= '

'.$this->l('Payment distribution').'

+ $this->_html .= ' +
+

'.$this->l('Payment distribution').'

+

'.$this->l('The amounts are with taxes, so you can get an estimation of the commission due to the payment method.').'

'.$this->l('Zone:').'