array('operatorType' => CRM_Report_Form::OP_DATE),
'currency' =>
array('title' => 'Currency',
- 'operatorType' => CRM_Utils_Type::T_STRING,
+ 'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+ 'options' => CRM_Core_PseudoConstant::currencySymbols('name','name'),
+ 'type' => CRM_Utils_Type::T_STRING,
),
- 'financial_type_id' =>
- array( 'title' => ts( 'Financial Type' ),
+ 'financial_type_id' =>
+ array( 'title' => ts( 'Financial Type' ),
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
'options' => CRM_Contribute_PseudoConstant::financialType(),
'type' => CRM_Utils_Type::T_INT,
$group = "\nGROUP BY {$this->_aliases['civicrm_contribution']}.currency";
$sql = "{$select} {$this->_from} {$this->_where} {$group}";
+ crm_core_error::Debug( $sql);
$dao = CRM_Core_DAO::executeQuery($sql);
while ($dao->fetch()) {
'operatorType' => CRM_Report_Form::OP_DATE,
),
'currency' =>
- array('title' => ts('Currency'),
- 'default' => NULL,
+ array('title' => 'Currency',
+ 'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+ 'options' => CRM_Core_PseudoConstant::currencySymbols('name','name'),
'type' => CRM_Utils_Type::T_STRING,
- ),
+ ),
'total_range' =>
array('title' => ts('Show no. of Top Donors'),
'type' => CRM_Utils_Type::T_INT,
'default_op' => 'eq',
),
- 'financial_type_id' =>
- array( 'name' => 'financial_type_id',
- 'title' => ts( 'Financial Type' ),
+ 'financial_type_id' =>
+ array( 'name' => 'financial_type_id',
+ 'title' => ts( 'Financial Type' ),
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
- 'options' => CRM_Contribute_PseudoConstant::financialType( )
+ 'options' => CRM_Contribute_PseudoConstant::financialType( )
),
'contribution_status_id' =>
array('title' => ts('Donation Status'),
),
'currency' =>
array('title' => 'Currency',
- 'default' => NULL,
+ 'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+ 'options' => CRM_Core_PseudoConstant::currencySymbols('name','name'),
'type' => CRM_Utils_Type::T_STRING,
),
'sid' =>
array('title' => ts('Pledge Made'),
'required' => TRUE,
),
- 'financial_type_id' =>
- array( 'title' => ts('Financial Type'),
+ 'financial_type_id' =>
+ array( 'title' => ts('Financial Type'),
'requried' => TRUE,
),
'amount' =>
),
'currency' =>
array('title' => 'Currency',
- 'default' => NULL,
- 'type' => CRM_Utils_Type::T_STRING,
+ 'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+ 'options' => CRM_Core_PseudoConstant::currencySymbols('name','name'),
+ 'type' => CRM_Utils_Type::T_STRING,
),
- 'financial_type_id' =>
- array( 'title' => ts('Financial Type'),
+ 'financial_type_id' =>
+ array( 'title' => ts('Financial Type'),
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
- 'options' => CRM_Contribute_PseudoConstant::financialType(),
+ 'options' => CRM_Contribute_PseudoConstant::financialType(),
),
),
'grouping' => 'pledge-fields',