dev/core#767 Add 'Cancelled / Refunded Date' and 'Cancellation / Refund Reason'
authoravall-llovera <48087290+avall-llovera@users.noreply.github.com>
Thu, 28 Feb 2019 10:03:16 +0000 (11:03 +0100)
committerGitHub <noreply@github.com>
Thu, 28 Feb 2019 10:03:16 +0000 (11:03 +0100)
Add the fields and filters 'Cancelled / Refunded Date' and 'Cancellation / Refund Reason' in the Detail Contributions Report

CRM/Report/Form/Contribute/Detail.php

index 10690896e7d06e6c91e4e3618beea1b926890e82..d9cb97edcf0818c01180dc16454f4ca840e979b7 100644 (file)
@@ -178,6 +178,12 @@ class CRM_Report_Form_Contribute_Detail extends CRM_Report_Form {
             'title' => ts('Soft Credit For'),
             'dbAlias' => "NULL",
           ),
+          'cancel_date' => array(
+            'title' => ts('Cancelled / Refunded Date'),
+          ),
+          'cancel_reason' => array(
+            'title' => ts('Cancellation / Refund Reason'),
+          ),
         ),
         'filters' => array(
           'contribution_or_soft' => array(
@@ -233,6 +239,13 @@ class CRM_Report_Form_Contribute_Detail extends CRM_Report_Form {
             'type' => CRM_Utils_Type::T_INT,
           ),
           'total_amount' => array('title' => ts('Contribution Amount')),
+          'cancel_date' => array(
+            'title' => ts('Cancelled / Refunded Date'),
+            'operatorType' => CRM_Report_Form::OP_DATE,
+          ),
+          'cancel_reason' => array(
+            'title' => ts('Cancellation / Refund Reason'),
+          ),
         ),
         'order_bys' => array(
           'financial_type_id' => array('title' => ts('Financial Type')),