'role_id' => array('title' => ts('Role'),
'default' => TRUE,
),
+ 'fee_currency' => array(
+ 'required' => TRUE,
+ 'no_display' => TRUE,
+ ),
'participant_fee_level' => NULL,
'participant_fee_amount' => NULL,
'participant_register_date' => array('title' => ts('Registration Date')),
'title' => ' Registration Date',
'operatorType' => CRM_Report_Form::OP_DATE,
),
+ 'fee_currency' =>
+ array('title' => 'Currency',
+ 'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+ 'options' => CRM_Core_OptionGroup::values('currencies_enabled'),
+ 'type' => CRM_Utils_Type::T_STRING,
+ ),
+
),
'order_bys' =>
array(
),
),
);
+ $this->_currencyColumn = 'civicrm_participant_fee_currency';
parent::__construct();
}
'no_display' => TRUE,
'required' => FALSE,
),
+ 'currency' => array(
+ 'required' => TRUE,
+ 'no_display' => TRUE,
+ ),
'amount' =>
array('title' => ts('Pledge Amount'),
'required' => TRUE,
array('title' => ts('Pledged Amount'),
'operatorType' => CRM_Report_Form::OP_INT,
),
+ 'currency' =>
+ array('title' => 'Currency',
+ 'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+ 'options' => CRM_Core_OptionGroup::values('currencies_enabled'),
+ 'type' => CRM_Utils_Type::T_STRING,
+ ),
'sid' =>
array(
'name' => 'status_id',
'total_paid' =>
array(
'title' => ts('Total Amount Paid'),
- 'type' => CRM_Utils_Type::T_MONEY,
+ 'type' => CRM_Utils_Type::T_STRING,
'dbAlias' => 'sum(pledge_payment_civireport.actual_amount)',
),
),
) + $this->addAddressFields();
$this->_tagFilter = TRUE;
+ $this->_currencyColumn = 'civicrm_pledge_currency';
parent::__construct();
}
";
$sql = "{$select} {$this->_from} {$this->_where}";
+
$dao = CRM_Core_DAO::executeQuery($sql);
if ($dao->fetch()) {
$entryFound = FALSE;
$checkList = array();
$display_flag = $prev_cid = $cid = 0;
-
+ crm_Core_error::Debug('$rows', $rows);
foreach ($rows as $rowNum => $row) {
// convert display name to links