projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a43ea4b
)
allow PCP report to filter on contribution status
author
Jamie McClelland
<jm@mayfirst.org>
Tue, 3 Dec 2019 19:38:10 +0000
(14:38 -0500)
committer
Jamie McClelland
<jm@mayfirst.org>
Tue, 3 Dec 2019 19:38:10 +0000
(14:38 -0500)
Without this filter, incomplete contributions are included in the report
which really throws off the total.
CRM/Report/Form/Contribute/PCP.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Report/Form/Contribute/PCP.php
b/CRM/Report/Form/Contribute/PCP.php
index 5f5e9e46d19f394b8236524c35ca808caa3d9370..8b0ec5f5e59abdc82ecd1ef845ec39c7443541e7 100644
(file)
--- a/
CRM/Report/Form/Contribute/PCP.php
+++ b/
CRM/Report/Form/Contribute/PCP.php
@@
-173,6
+173,14
@@
class CRM_Report_Form_Contribute_PCP extends CRM_Report_Form {
],
],
],
+ 'filters' => [
+ 'contribution_status_id' => [
+ 'title' => ts('Contribution Status'),
+ 'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+ 'options' => CRM_Contribute_PseudoConstant::contributionStatus(),
+ 'default' => [1],
+ ],
+ ],
'grouping' => 'pcp-fields',
],
'civicrm_financial_trxn' => [