Commit 2feca82f authored by AllenShaw's avatar AllenShaw

CRM-21287: Add Financial Type column and filter.

parent e0b780c5
......@@ -138,6 +138,9 @@ class CRM_Report_Form_Contribute_HouseholdSummary extends CRM_Report_Form {
'required' => TRUE,
'no_display' => TRUE,
),
'financial_type_id' => array(
'title' => ts('Financial Type'),
),
'trxn_id' => NULL,
'receive_date' => array('default' => TRUE),
'receipt_date' => NULL,
......@@ -158,6 +161,11 @@ class CRM_Report_Form_Contribute_HouseholdSummary extends CRM_Report_Form {
'options' => CRM_Contribute_PseudoConstant::contributionStatus(),
'default' => array(1),
),
'financial_type_id' => array(
'title' => ts('Financial Type'),
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
'options' => CRM_Contribute_PseudoConstant::financialType(),
),
),
'grouping' => 'contri-fields',
),
......@@ -526,6 +534,12 @@ class CRM_Report_Form_Contribute_HouseholdSummary extends CRM_Report_Form {
}
}
if (array_key_exists('civicrm_contribution_financial_type_id', $row)) {
if ($value = $row['civicrm_contribution_financial_type_id']) {
$rows[$rowNum]['civicrm_contribution_financial_type_id'] = CRM_Contribute_PseudoConstant::financialType($value);
}
}
// handle state province
if (array_key_exists('civicrm_address_state_province_id', $row)) {
if ($value = $row['civicrm_address_state_province_id']) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment