Skip to content

Commit

Permalink
Merge pull request #20168 from larssandergreen/add-recurring-filter-t…
Browse files Browse the repository at this point in the history
…o-contribution-summary-report

dev/search#63 Add recurring contributions to contribution reports
  • Loading branch information
eileenmcnaughton authored Aug 14, 2021
2 parents 1f05ec6 + cbef4d6 commit 02952b2
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions CRM/Report/Form/Contribute/Summary.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
Expand Down Expand Up @@ -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'),
],
Expand Down Expand Up @@ -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' => [
Expand Down

0 comments on commit 02952b2

Please sign in to comment.