allow PCP report to filter on contribution status
authorJamie McClelland <jm@mayfirst.org>
Tue, 3 Dec 2019 19:38:10 +0000 (14:38 -0500)
committerJamie 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

index 5f5e9e46d19f394b8236524c35ca808caa3d9370..8b0ec5f5e59abdc82ecd1ef845ec39c7443541e7 100644 (file)
@@ -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' => [