CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Adding Previous 24 Months To Find Contributions Relative Date Search, How?
Pages: [1]

Author Topic: Adding Previous 24 Months To Find Contributions Relative Date Search, How?  (Read 899 times)

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Adding Previous 24 Months To Find Contributions Relative Date Search, How?
March 13, 2013, 07:19:41 am
Hi.

The goal is to add "From 24 Months Ago" and "From 36 Months Ago" to the relative date filter of Contribution Search (as well as in Advanced Search and Reports)

In 4.3b2 I've found in CRM/Core/From/Date.php ~line 116
Code: [Select]
'ending.year' => ts('From 12 Months Ago'),
I can't find any other reference to 'ending.year' in the code.  Where would I go to define more options for this relative date drop down filter?  If someone can point me in the right direction I'll submit a patch.

Thanks!



Try CiviTeacher: the online video tutorial CiviCRM learning library.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Adding Previous 24 Months To Find Contributions Relative Date Search, How?
March 13, 2013, 07:57:54 am

CRM/Utils/Date.php, function relativeToAbsolute

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Adding Previous 24 Months To Find Contributions Relative Date Search, How?
March 25, 2013, 01:40:18 pm
Stoob,

If you do that one you might want to include this one in your patch if you think it makes sense

http://issues.civicrm.org/jira/browse/CRM-11356

I logged that one but by the time someone else had taken a look & kicked it back to me a week later it was out-of-scope so I never finished it.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Adding Previous 24 Months To Find Contributions Relative Date Search, How?
May 03, 2013, 11:24:34 am
http://issues.civicrm.org/jira/browse/CRM-12520 improvement with patch filed.
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Adding Previous 24 Months To Find Contributions Relative Date Search, How?
May 05, 2013, 04:25:25 pm
And as a result I was able to applaud Stoob & give him his hundredth karma point. Congratulations Stoob
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Adding Previous 24 Months To Find Contributions Relative Date Search, How?

This forum was archived on 2017-11-26.