+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
- 'fields' =>
- array(
- 'display_name_creditor' =>
- array('title' => ts('Soft Credit Name'),
+ 'fields' => array(
+ 'display_name_creditor' => array(
+ 'title' => ts('Soft Credit Name'),
- 'display_name_constituent' =>
- array('title' => ts('Contributor Name'),
+ 'display_name_constituent' => array(
+ 'title' => ts('Contributor Name'),
'name' => 'sort_name',
'title' => ts('Soft Credit Name')
),
),
'grouping' => 'contact-fields',
),
'name' => 'sort_name',
'title' => ts('Soft Credit Name')
),
),
'grouping' => 'contact-fields',
),
- 'civicrm_financial_type' =>
- array('dao' => 'CRM_Financial_DAO_FinancialType',
- 'fields' => array('financial_type' => null,),
- 'filters' =>
- array(
- 'id' =>
- array(
+ 'civicrm_financial_type' => array(
+ 'dao' => 'CRM_Financial_DAO_FinancialType',
+ 'fields' => array('financial_type' => NULL,),
+ 'filters' => array(
+ 'id' => array(
'name' => 'id',
'title' => ts('Financial Type'),
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
'name' => 'id',
'title' => ts('Financial Type'),
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
- 'statistics' =>
- array('sum' => ts('Aggregate Amount'),
- 'count' => ts('Donations'),
+ 'statistics' => array(
+ 'sum' => ts('Aggregate Amount'),
+ 'count' => ts('Contributions'),
- 'filters' =>
- array(
- 'receive_date' =>
- array('operatorType' => CRM_Report_Form::OP_DATE),
- 'currency' =>
- array('title' => 'Currency',
+ 'filters' => array(
+ 'receive_date' => array('operatorType' => CRM_Report_Form::OP_DATE),
+ 'currency' => array(
+ 'title' => 'Currency',
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
'options' => CRM_Core_OptionGroup::values('currencies_enabled'),
'default' => NULL,
'type' => CRM_Utils_Type::T_STRING,
),
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
'options' => CRM_Core_OptionGroup::values('currencies_enabled'),
'default' => NULL,
'type' => CRM_Utils_Type::T_STRING,
),
- 'contribution_status_id' =>
- array('title' => ts('Donation Status'),
+ 'contribution_status_id' => array(
+ 'title' => ts('Contribution Status'),
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
'options' => CRM_Contribute_PseudoConstant::contributionStatus(),
'default' => array(1),
),
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
'options' => CRM_Contribute_PseudoConstant::contributionStatus(),
'default' => array(1),
),
- 'filters' =>
- array(
- 'soft_credit_type_id' =>
- array('title' => 'Soft Credit Type',
+ 'filters' => array(
+ 'soft_credit_type_id' => array(
+ 'title' => 'Soft Credit Type',
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
'options' => CRM_Core_OptionGroup::values('soft_credit_type'),
'default' => NULL,
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
'options' => CRM_Core_OptionGroup::values('soft_credit_type'),
'default' => NULL,
- $this->_columns['civicrm_contribution']['filters']['campaign_id'] = array('title' => ts('Campaign'),
+ $this->_columns['civicrm_contribution']['filters']['campaign_id'] = array(
+ 'title' => ts('Campaign'),
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
'options' => $this->activeCampaigns,
);
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
'options' => $this->activeCampaigns,
);
foreach ($this->_columns as $tableName => $table) {
if (array_key_exists('fields', $table)) {
foreach ($table['fields'] as $fieldName => $field) {
foreach ($this->_columns as $tableName => $table) {
if (array_key_exists('fields', $table)) {
foreach ($table['fields'] as $fieldName => $field) {
FROM civicrm_contribution {$this->_aliases['civicrm_contribution']}
INNER JOIN civicrm_contribution_soft {$this->_aliases['civicrm_contribution_soft']}
ON {$this->_aliases['civicrm_contribution_soft']}.contribution_id =
FROM civicrm_contribution {$this->_aliases['civicrm_contribution']}
INNER JOIN civicrm_contribution_soft {$this->_aliases['civicrm_contribution_soft']}
ON {$this->_aliases['civicrm_contribution_soft']}.contribution_id =
- $totalAmount[] = CRM_Utils_Money::format($dao->amount, $dao->currency).'('.$dao->count.')';
- $average[] = CRM_Utils_Money::format($dao->avg, $dao->currency);
+ $totalAmount[] =
+ CRM_Utils_Money::format($dao->amount, $dao->currency) . '(' .
+ $dao->count . ')';
+ $average[] = CRM_Utils_Money::format($dao->avg, $dao->currency);
'type' => CRM_Utils_Type::T_STRING,
);
$statistics['counts']['count'] = array(
'type' => CRM_Utils_Type::T_STRING,
);
$statistics['counts']['count'] = array(
$this->buildACLClause(array('constituentname', 'contact_civireport'));
$sql = $this->buildQuery();
$this->buildACLClause(array('constituentname', 'contact_civireport'));
$sql = $this->buildQuery();
$this->_absoluteUrl, $this->_id, $this->_drilldownReport
);
$rows[$rowNum]['civicrm_contact_display_name_constituent_link'] = $url;
$this->_absoluteUrl, $this->_id, $this->_drilldownReport
);
$rows[$rowNum]['civicrm_contact_display_name_constituent_link'] = $url;
- if (array_key_exists('civicrm_contact_display_name_creditor', $row) && !empty($rows[$rowNum]['civicrm_contact_display_name_creditor']) &&
+ if (array_key_exists('civicrm_contact_display_name_creditor', $row) &&
+ !empty($rows[$rowNum]['civicrm_contact_display_name_creditor']) &&
array_key_exists('civicrm_contact_id_creditor', $row)
) {
$url = CRM_Utils_System::url("civicrm/contact/view",
array_key_exists('civicrm_contact_id_creditor', $row)
) {
$url = CRM_Utils_System::url("civicrm/contact/view",