// Add units to goals configuration

This commit is contained in:
Damien Metzger
2013-10-23 16:36:04 +02:00
parent 9930c375c7
commit 466699edcb
2 changed files with 25 additions and 8 deletions
+2 -3
View File
@@ -90,6 +90,7 @@ class Dashgoals extends Module
$month_row['values'][$type] = ConfigurationKPI::get(strtoupper($key));
}
$this->context->smarty->assign('currency_code', $this->context->currency->iso_code);
$this->context->smarty->assign('goals_year', $year);
$this->context->smarty->assign('goals_months', $months);
return $this->display(__FILE__, 'dashboard_zone_two.tpl');
@@ -97,9 +98,7 @@ class Dashgoals extends Module
public function hookDashboardData($params)
{
return array(
'data_chart' => array('dash_goals_chart1' => $this->getChartData()),
);
return array('data_chart' => array('dash_goals_chart1' => $this->getChartData()));
}
public function getChartData()