'no_display' => TRUE,
'required' => TRUE,
),
+ 'financial_type_id' => array(
+ 'title' => ts('Financial Type'),
+ ),
'amount' => array(
'title' => ts('Pledge Amount'),
'required' => TRUE,
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
'options' => CRM_Core_OptionGroup::values('contribution_status'),
),
+ 'financial_type_id' => array(
+ 'title' => ts('Financial Type'),
+ 'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+ 'options' => CRM_Contribute_PseudoConstant::financialType(),
+ ),
),
),
$entryFound = TRUE;
}
+ if (array_key_exists('civicrm_pledge_financial_type_id', $row)) {
+ if ($value = $row['civicrm_pledge_financial_type_id']) {
+ $rows[$rowNum]['civicrm_pledge_financial_type_id'] = CRM_Contribute_PseudoConstant::financialType($value, FALSE);
+ }
+ $entryFound = TRUE;
+ }
+
//handle status id
if (array_key_exists('civicrm_pledge_status_id', $row)) {
if ($value = $row['civicrm_pledge_status_id']) {
'no_display' => TRUE,
'required' => FALSE,
),
+ 'financial_type_id' => array(
+ 'title' => ts('Financial Type'),
+ ),
'currency' => array(
'required' => TRUE,
'no_display' => TRUE,
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
'options' => CRM_Core_OptionGroup::values('contribution_status'),
),
+ 'financial_type_id' => array(
+ 'title' => ts('Financial Type'),
+ 'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+ 'options' => CRM_Contribute_PseudoConstant::financialType(),
+ ),
),
'group_bys' => array(
'pledge_create_date' => array(
$entryFound = TRUE;
}
+ if (array_key_exists('civicrm_pledge_financial_type_id', $row)) {
+ if ($value = $row['civicrm_pledge_financial_type_id']) {
+ $rows[$rowNum]['civicrm_pledge_financial_type_id'] = CRM_Contribute_PseudoConstant::financialType($value, FALSE);
+ }
+ $entryFound = TRUE;
+ }
+
//handle status id
if (array_key_exists('civicrm_pledge_status_id', $row)) {
if ($value = $row['civicrm_pledge_status_id']) {