diff --git a/CRM/Report/Form/Contribute/Summary.php b/CRM/Report/Form/Contribute/Summary.php index 27d08eb05af2..82ae379f5016 100644 --- a/CRM/Report/Form/Contribute/Summary.php +++ b/CRM/Report/Form/Contribute/Summary.php @@ -142,6 +142,11 @@ public function __construct() { 'non_deductible_amount' => [ 'title' => ts('Non-deductible Amount'), ], + 'contribution_recur_id' => [ + 'title' => ts('Contribution Recurring'), + 'dbAlias' => '!ISNULL(contribution_civireport.contribution_recur_id)', + 'type' => CRM_Utils_Type::T_BOOLEAN, + ], ], 'grouping' => 'contri-fields', 'filters' => [ @@ -180,6 +185,17 @@ public function __construct() { 'options' => CRM_Contribute_PseudoConstant::contributionPage(), 'type' => CRM_Utils_Type::T_INT, ], + 'contribution_recur_id' => [ + 'title' => ts('Contribution Recurring'), + 'operatorType' => CRM_Report_Form::OP_SELECT, + 'type' => CRM_Utils_Type::T_BOOLEAN, + 'options' => [ + '' => ts('Any'), + TRUE => ts('Yes'), + FALSE => ts('No'), + ], + 'dbAlias' => '!ISNULL(contribution_civireport.contribution_recur_id)', + ], 'total_amount' => [ 'title' => ts('Contribution Amount'), ], @@ -225,6 +241,11 @@ public function __construct() { 'options' => CRM_Contribute_PseudoConstant::contributionPage(), 'type' => CRM_Utils_Type::T_INT, ], + 'contribution_recur_id' => [ + 'title' => ts('Contribution Recurring'), + 'type' => CRM_Utils_Type::T_BOOLEAN, + 'dbAlias' => '!ISNULL(contribution_civireport.contribution_recur_id)', + ], ], ], 'civicrm_financial_trxn' => [