From c0568199ac9684cb7d6b038ec186d5aa0b5462c9 Mon Sep 17 00:00:00 2001 From: Ravish Nair Date: Tue, 8 Oct 2013 19:20:30 +0530 Subject: [PATCH] -- CRM-10347 added birth date columns and filters ---------------------------------------- * CRM-10347: Add Birth Date to both the Consituent Detail and Constituent Summary Reports http://issues.civicrm.org/jira/browse/CRM-10347 --- CRM/Report/Form/Contact/Detail.php | 9 +++++++++ CRM/Report/Form/Contact/Summary.php | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/CRM/Report/Form/Contact/Detail.php b/CRM/Report/Form/Contact/Detail.php index d9ba8a91e3..1ab75d8124 100644 --- a/CRM/Report/Form/Contact/Detail.php +++ b/CRM/Report/Form/Contact/Detail.php @@ -72,6 +72,10 @@ class CRM_Report_Form_Contact_Detail extends CRM_Report_Form { array( 'title' => ts('Contact SubType'), ), + 'birth_date' => + array( + 'title' => ts('Birth Date'), + ), ), 'filters' => array( @@ -82,6 +86,11 @@ class CRM_Report_Form_Contact_Detail extends CRM_Report_Form { 'sort_name' => array('title' => ts('Contact Name'), ), + 'birth_date' => + array( + 'title' => ts('Birth Date'), + 'operatorType' => CRM_Report_Form::OP_DATE, + ), ), 'grouping' => 'contact-fields', 'order_bys' => diff --git a/CRM/Report/Form/Contact/Summary.php b/CRM/Report/Form/Contact/Summary.php index 83acddd707..3fa5e0cac1 100644 --- a/CRM/Report/Form/Contact/Summary.php +++ b/CRM/Report/Form/Contact/Summary.php @@ -78,6 +78,10 @@ class CRM_Report_Form_Contact_Summary extends CRM_Report_Form { array( 'title' => ts('Contact SubType'), ), + 'birth_date' => + array( + 'title' => ts('Birth Date'), + ), ), 'filters' => array( @@ -91,6 +95,11 @@ class CRM_Report_Form_Contact_Summary extends CRM_Report_Form { array('title' => ts('Contact ID'), 'no_display' => TRUE, ), + 'birth_date' => + array( + 'title' => ts('Birth Date'), + 'operatorType' => CRM_Report_Form::OP_DATE, + ), ), 'grouping' => 'contact-fields', 'order_bys' => -- 2.25.1