Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.6, 4.5
    • Fix Version/s: 4.5
    • Component/s: CiviCRM Search, CiviReport
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      1) Add a set of relative date filters (mostly for use with membership reports see http://forum.civicrm.org/index.php/topic,34046 )

      From end of previous year ( eg from 31 December 2013)
      From end of previous quarter ( eg from 30 June 2014)
      From end of previous month ( eg from 31 August 2014)
      ?From end of previous week ( eg depends on when your week starts and is probably not useful but should be added for completeness?)
      From end of previous day is same as from start of current day so wouldn't include that.

      2) working on this has revealed a notice:
      Notice Undefined variable: subtractYear in CRM_Utils_Date::relativeToAbsolute() (line XXXX of C:\xampp\htdocs\drupal\sites\all\modules\civicrm\CRM\Utils\Date.php).

      that appears for about half of the exisitng relative filters for case Quarter.
      so I will fix that.

      3) I think the relative filters currently starting with "To End of Prior ..." should really be "To End of Previous..." to fit in with the way prior and previous are used in the rest of the relative filters, so I am thinking I would change that also.

      Is that all Ok to do and should I make one or three patches ?

      Also, they will be ready in a couple of hours. Should I base them on master or 4.5 ? ( very superficial changes)

        Attachments

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              jchester Joanne Chester
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: