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 CiviMember (Moderator: Deepak Srivastava) »
  • Fixed membership term seems to be miscalculated
Pages: [1]

Author Topic: Fixed membership term seems to be miscalculated  (Read 1721 times)

samarkand

  • Guest
Fixed membership term seems to be miscalculated
July 30, 2007, 05:53:48 pm
I've set up a membership type with a fixed term of 3 years duration:

http://demo.civicrm.org/drupal/civicrm/admin/member/membershipType?action=update&id=5&reset=1

However, when I enroll a contact in this membership and don't set the end date myself, then that end date is automatically set to 4 years after the start date:

http://demo.civicrm.org/drupal/civicrm/contact/view?reset=1&cid=126

What's going on? (I'm assuming that setting the rollover day to December 31 should eliminate that field as a factor in altering the duration.)

Thank you.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Fixed membership term seems to be miscalculated
July 31, 2007, 11:33:35 am
There is a bug in the way the End Date is being calculated for Fixed Period type memberships. I've posted an issue at:
http://issues.civicrm.org/jira/browse/CRM-2150

As a side note, setting the Fixed Period Rollover Date will potentially impact the calculation of End Date since it is relative to the Fixed Period Start Date. In your test example:

Fixed Period Start = Oct 01
Rollover Day = Dec 31
Duration = 3 years

Given this setup, if a member joins between Dec 31 and Oct 1 (let's say July 31) - they would get an extra year since they joined after the Rollover Day. (Joining today - July 31 2007 - my end date should be 3 years from Oct 1 2007 = Sep 30 2010). Generally, if a Rollover is desired - you would set it ~ 1 month prior to Period Start Day.

Thx for testing this and catching the bug!
Protect your investment in CiviCRM by  becoming a Member!

samarkand

  • Guest
Re: Fixed membership term seems to be miscalculated
July 31, 2007, 12:14:36 pm
Thank you, Dave, for addressing the bug.

Regarding the rollover day: actually, it is not desired, but it is a required field. So I was trying to figure out what to set it to so that it would not be a factor in calculating the End Date. Perhaps the day before the Fixed Period Start Date?

So, for a fixed period duration of 3 years, with a Start Date of October 1, 2005, would I set the Rollover Day to September 30, 2005 in order to have no "rollover factor"? And CiviCRM would (given no bugs) calculate the End Date as September 30, 2008?

Thanks again.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Fixed membership term seems to be miscalculated
July 31, 2007, 12:53:08 pm
Yes - exactly. And "no rollover effect" means that if I joined on Sep 30, 2005 - then my first year of membership would be Sep 30, 2005 - Oct 1, 2005 (1 day :-) ). And my End Date for a 3 year membership would be Sep 30, 2007.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Fixed membership term seems to be miscalculated

This forum was archived on 2017-11-26.