From b7327f073b11752a8b607028c982b258e059d647 Mon Sep 17 00:00:00 2001 From: "Matthew Wire (MJW Consulting)" Date: Mon, 25 Feb 2019 14:42:33 +0000 Subject: [PATCH] Add payment_processor_id to recurring contribution report --- CRM/Report/Form/Contribute/Recur.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/CRM/Report/Form/Contribute/Recur.php b/CRM/Report/Form/Contribute/Recur.php index 8e966772f2..7d1f6309c5 100644 --- a/CRM/Report/Form/Contribute/Recur.php +++ b/CRM/Report/Form/Contribute/Recur.php @@ -179,6 +179,9 @@ class CRM_Report_Form_Contribute_Recur extends CRM_Report_Form { 'failure_retry_date' => array( 'title' => ts('Failure Retry Date'), ), + 'payment_processor_id' => array( + 'title' => ts('Payment Processor'), + ), ), 'filters' => array( 'contribution_status_id' => array( @@ -245,6 +248,13 @@ class CRM_Report_Form_Contribute_Recur extends CRM_Report_Form { 'operatorType' => CRM_Report_Form::OP_DATE, 'pseudofield' => TRUE, ), + 'payment_processor_id' => array( + 'title' => ts('Payment Processor'), + 'operatorType' => CRM_Report_Form::OP_MULTISELECT, + 'options' => CRM_Contribute_BAO_ContributionRecur::buildOptions('payment_processor_id', 'get'), + 'default' => NULL, + 'type' => CRM_Utils_Type::T_INT, + ), ), ), ); @@ -390,6 +400,10 @@ class CRM_Report_Form_Contribute_Recur extends CRM_Report_Form { if (!empty($row['civicrm_financial_trxn_card_type_id'])) { $rows[$rowNum]['civicrm_financial_trxn_card_type_id'] = $this->getLabels($row['civicrm_financial_trxn_card_type_id'], 'CRM_Financial_DAO_FinancialTrxn', 'card_type_id'); } + + if (!empty($row['civicrm_contribution_recur_payment_processor_id'])) { + $rows[$rowNum]['civicrm_contribution_recur_payment_processor_id'] = $this->getLabels($row['civicrm_contribution_recur_payment_processor_id'], 'CRM_Contribute_BAO_ContributionRecur', 'payment_processor_id'); + } } } -- 2.25.1