From 80c17053a0332247ecf202532ffa352c05e71325 Mon Sep 17 00:00:00 2001 From: Eileen Date: Mon, 2 May 2016 10:07:03 +0000 Subject: [PATCH] CRM-18488 add installments to pledged by not paid report I also added a couple of other fields & filters while copying across from the detail report. I tested the new filters & adding the fields --- CRM/Report/Form/Pledge/Pbnp.php | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/CRM/Report/Form/Pledge/Pbnp.php b/CRM/Report/Form/Pledge/Pbnp.php index c1e0cb3643..9bc182e71e 100644 --- a/CRM/Report/Form/Pledge/Pbnp.php +++ b/CRM/Report/Form/Pledge/Pbnp.php @@ -84,7 +84,13 @@ class CRM_Report_Form_Pledge_Pbnp extends CRM_Report_Form { ), 'financial_type_id' => array( 'title' => ts('Financial Type'), - 'requried' => TRUE, + 'required' => TRUE, + ), + 'frequency_unit' => array( + 'title' => ts('Frequency Unit'), + ), + 'installments' => array( + 'title' => ts('Installments'), ), 'amount' => array( 'title' => ts('Amount'), @@ -104,6 +110,10 @@ class CRM_Report_Form_Pledge_Pbnp extends CRM_Report_Form { 'title' => ts('Pledge Made'), 'operatorType' => CRM_Report_Form::OP_DATE, ), + 'pledge_amount' => array( + 'title' => ts('Pledged Amount'), + 'operatorType' => CRM_Report_Form::OP_INT, + ), 'currency' => array( 'title' => 'Currency', 'operatorType' => CRM_Report_Form::OP_MULTISELECT, @@ -117,6 +127,17 @@ class CRM_Report_Form_Pledge_Pbnp extends CRM_Report_Form { 'operatorType' => CRM_Report_Form::OP_MULTISELECT, 'options' => CRM_Contribute_PseudoConstant::financialType(), ), + 'pledge_status_id' => array( + 'name' => 'status_id', + 'title' => ts('Pledge Status'), + 'type' => CRM_Utils_Type::T_INT, + 'operatorType' => CRM_Report_Form::OP_MULTISELECT, + 'options' => CRM_Core_OptionGroup::values('contribution_status'), + ), + 'installments' => array( + 'title' => ts('Installments'), + 'type' => CRM_Utils_Type::T_INT, + ), ), 'grouping' => 'pledge-fields', ), -- 2.25.1