civicrm_event.start_date as start_date,
civicrm_event.end_date as end_date,
civicrm_option_value.label as event_type,
+ civicrm_participant.fee_currency as currency,
SUM(civicrm_participant.fee_amount) as total,
COUNT(civicrm_participant.id) as participant
GROUP BY civicrm_event.id
";
+
$eventDAO = CRM_Core_DAO::executeQuery($sql);
while ($eventDAO->fetch()) {
$eventSummary[$eventDAO->event_id]['Start Date'] = CRM_Utils_Date::customFormat($eventDAO->start_date);
$eventSummary[$eventDAO->event_id]['End Date'] = CRM_Utils_Date::customFormat($eventDAO->end_date);
$eventSummary[$eventDAO->event_id]['Event Type'] = $eventDAO->event_type;
- $eventSummary[$eventDAO->event_id]['Event Income'] = CRM_Utils_Money::format($eventDAO->total);
+ $eventSummary[$eventDAO->event_id]['Event Income'] = CRM_Utils_Money::format($eventDAO->total, $eventDAO->currency);
$eventSummary[$eventDAO->event_id]['Registered Participant'] = "{$eventDAO->participant} ({$activeparticipnatStutusLabel})";
}
$this->assign_by_ref('summary', $eventSummary);