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) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • Contribution Summary Report: Why the "Do not use filter on Date" error?
Pages: [1]

Author Topic: Contribution Summary Report: Why the "Do not use filter on Date" error?  (Read 428 times)

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Contribution Summary Report: Why the "Do not use filter on Date" error?
February 05, 2015, 11:39:29 am
If you run the Contribution Summary report, do NOT group by date, and filter by date, you get the error message: "Do not use filter on Date if group by Receive Date is not used".

Can anyone explain to me why this is?  I suspected it's unnecessary, so I commented that error out in Summary.php and everything worked exactly as I expected.  It also seems like it's reasonable to want to ask a question like, "How much money did we bring in last year, grouped by financial type?"  Still, someone obviously thought this was important enough to code a custom formRule.  Ideally we could get rid of this.
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

magnolia61

  • I post occasionally
  • **
  • Posts: 37
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34 / Joomla 3.3.6
  • MySQL version: MySQL 5.5.40
  • PHP version: PHP 5.5.19
Re: Contribution Summary Report: Why the "Do not use filter on Date" error?
February 08, 2015, 08:58:02 am
I absolutely agree with this 'complain'! What changes did you make to which file (summary.php in which path)
Can you submit a PR for inclusion in core civicrm?

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Contribution Summary Report: Why the "Do not use filter on Date" error?
February 08, 2015, 11:12:17 am
I'm happy to submit a PR - and my work with the Membership Detail report (CRM-19517, CRM-19520, CRM-19521) leads me to believe that this is probably a legacy error which can be safely removed.

For now, if you'd like to make the same change, find this line in CRM/Report/Form/Contribute/Summary.php (it's line 599 in the master branch):
        $errors['receive_date_relative'] = ts("Do not use filter on Date if group by Receive Date is not used ");

You can simply comment it out.
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • Contribution Summary Report: Why the "Do not use filter on Date" error?

This forum was archived on 2017-11-26.