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) »
  • Wrong start date for new membership with fixed period
Pages: [1] 2

Author Topic: Wrong start date for new membership with fixed period  (Read 4406 times)

mdatcher

  • I’m new here
  • *
  • Posts: 21
  • Karma: 2
  • CiviCRM version: 4.5.1
  • CMS version: Drupal 7.31
  • MySQL version: 5.5.37
  • PHP version: 5.3.28
Wrong start date for new membership with fixed period
January 13, 2011, 12:04:56 pm
My organization uses fixed memberships which start on 1 September. I have configured our memberships with a duration of 1 year with a fixed period starting Sep 1 and a rollover day of Jun 30. If I sign up for a membership today the membership ends up starting 1 September 2011 and ending on 31 August 2012. That is one year too far in the future. I want any new memberships between now and the end of June being for this year, not next. This occurs both for our live site and when I create a membership type with the above specification on the demo site. How can I correct the date logic for new memberships? Thanks.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Wrong start date for new membership with fixed period
January 17, 2011, 07:16:46 am
For tracking purpose: http://issues.civicrm.org/jira/browse/CRM-7392

Kurund
Found this reply helpful? Support CiviCRM

CherylT

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.1.5
  • CMS version: Drupal 6.26
  • MySQL version: 5.0.95
  • PHP version: 5.2.17
Re: Wrong start date for new membership with fixed period
March 04, 2011, 03:38:42 pm
I am experiencing this problem with 3.3.5.

Fixed membership
Start: 1 April
Duration 1 year
Rollover: 1 March

New membership since 1 March 2011 is showing:
Join date: 3 March 2011
Start: 1 April 2012
End: 31 March 2013

Expecting:
Join date: 3 March 2011
Start: 1 April 2011
End: 31 March 2012

I was able to reproduce this on the demo site.

thank you in advance for your assistance!

Cheryl

AudreyKate

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 1
  • CiviCRM version: 3.4.4
  • CMS version: Drupal 6.24
Re: Wrong start date for new membership with fixed period
March 08, 2011, 12:19:46 pm
I'm also running into this issue. Will applying the bug fix for 3.3.3 be OK for 3.3.5?

AudreyKate

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 1
  • CiviCRM version: 3.4.4
  • CMS version: Drupal 6.24
Re: Wrong start date for new membership with fixed period
March 12, 2011, 09:03:44 am
To answer my own question, the fix for CRM-7392 is already incorporated in 3.3.5, and yet the problem persists. I'm experiencing the exact behavior as Cheryl. At the moment, I am having to manually adjust every new self-signup membership, because CiviCRM is generating start and end dates for a year in the future.

CherylT

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.1.5
  • CMS version: Drupal 6.26
  • MySQL version: 5.0.95
  • PHP version: 5.2.17
Re: Wrong start date for new membership with fixed period
March 14, 2011, 09:28:28 am
Audrey, my work-around (until the issue is resolved) is to temporarily change the roll-over date to Dec 31. This change makes new sign-ups have the correct start and end dates, so at least you don't have to manually change the dates.

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Wrong start date for new membership with fixed period
March 25, 2011, 03:33:51 am
Hello all,

We'll do the needful tweak once again for membership dates calculation.

here is the filed issue : http://issues.civicrm.org/jira/browse/CRM-7825

thanks

kiran
You Are Designed To Choose... Defined By Choice.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Wrong start date for new membership with fixed period
March 25, 2011, 11:13:11 am
Quote from: CherylT on March 04, 2011, 03:38:42 pm
Fixed membership
Start: 1 April
Duration 1 year
Rollover: 1 March

New membership since 1 March 2011 is showing:
Join date: 3 March 2011
Start: 1 April 2012
End: 31 March 2013

Expecting:
Join date: 3 March 2011
Start: 1 April 2011
End: 31 March 2012

Cheryl / Audrey - Clearly the current behavior is wrong, but I'm a bit surprised at the "Expected" result above. If someone signs up during the rollover period I would the expected behavior is that the membership is active NOW but duration is extended to end of next fixed period. The "expected" scenario above with Start: 1 April 2011 means that this person is not considered a member until April 1, 2011. Wouldn't this result make more sense? ..

Expecting:
Join date: 3 March 2011
Start: 1 April 2010 (beginning of current fixed membership period) OR perhaps 3 March 2011
End: 31 March 2012
« Last Edit: March 25, 2011, 11:18:23 am by Dave Greenberg »
Protect your investment in CiviCRM by  becoming a Member!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Wrong start date for new membership with fixed period
March 25, 2011, 11:43:53 am
I've updated the current issue tracker report to reflect my comments above. Basic rules which I think make sense:

1. Membership start date ALWAYS is equal to current fixed period's beginning date (membership start date should NEVER be set to a future date).

2. If member's join date >= rollover date AND < fixed-period start day, then member end date = end of NEXT fixed membership period.

Please review examples in the issue tracker report and comment ASAP is this approach does not fit your requirements / expectations:
http://issues.civicrm.org/jira/browse/CRM-7825
Protect your investment in CiviCRM by  becoming a Member!

AudreyKate

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 1
  • CiviCRM version: 3.4.4
  • CMS version: Drupal 6.24
Re: Wrong start date for new membership with fixed period
March 29, 2011, 12:07:21 pm
Quote from: Dave Greenberg on March 25, 2011, 11:13:11 am

Cheryl / Audrey - Clearly the current behavior is wrong, but I'm a bit surprised at the "Expected" result above. If someone signs up during the rollover period I would the expected behavior is that the membership is active NOW but duration is extended to end of next fixed period. The "expected" scenario above with Start: 1 April 2011 means that this person is not considered a member until April 1, 2011. Wouldn't this result make more sense? ..


Thanks so much for the followup on this issue. Although the "Expected" behavior that Cheryl described has the start date listed as the beginning of the next membership term -- a date in the future -- CiviCRM still considers those memberships active. In other words, they come up when I search for new and current members, and they sync appropriately with CiviMember Roles Sync in Drupal.

Quote from: Dave Greenberg on March 25, 2011, 11:13:11 am

1. Membership start date ALWAYS is equal to current fixed period's beginning date (membership start date should NEVER be set to a future date).


I can take this next comment to the issue tracker report, but I'm not sure about this. If the next membership start date is April 1, 2011, and someone signs up on March 30, 2011, I don't think I want CiviCRM to record them with a membership that started April 1, 2010. It's like adding a whole year to their member history, instead of a day. For myself, I'd prefer a March 30, 2011 start date, or even the previously "expected" April 1, 2011 start date, as long as "future members" are counted and privileged properly. I don't know what works best for anyone else...

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Wrong start date for new membership with fixed period
March 29, 2011, 05:50:17 pm
Note that we do keep a separate Join Date in the membership record - which records the actual day the person signed up. I don't think our status rules will work consistently to set membership status as "Current" if the membership start date is in the future.
Protect your investment in CiviCRM by  becoming a Member!

davej

  • Ask me questions
  • ****
  • Posts: 404
  • Karma: 21
Re: Wrong start date for new membership with fixed period
April 01, 2011, 06:58:44 am
Hi,

I applied the patches from CRM-7825 (33440 + 33452) to 3.3.5, tested and found a problem.

Membership type has:

duration_unit: year
duration_interval: 1
period_type: fixed
fixed_period_start_day: 401 (Apr 01)
fixed_period_rollover_day: 101 (Jan 01)

I created a new membership today (Apr 01) with the following results.

With vanilla 3.3.5:
----------------------
join_date: 2011-04-01
start_date: 2012-04-01 (should be 2011-04-01)
end_date: 2013-03-31 (should be 2012-03-31)


With 3.3.5 + 33440 + 33452:
------------------------------------
join_date: 2011-04-01
start_date: 2011-04-01 (correct)
end_date: 2013-03-31 (should be 2012-03-31)

With sandbox.civicrm.org r33484:
----------------------------------------

join_date: 2011-04-01
start_date: 2011-04-01 (correct)
end_date: 2013-03-31 (should be 2012-03-31)

Maybe this is an edge case when signing up on the fixed period start date? That will be quite a common edge case. :)

Dave J

davej

  • Ask me questions
  • ****
  • Posts: 404
  • Karma: 21
Re: Wrong start date for new membership with fixed period
April 04, 2011, 03:48:02 am
Quote from: davej on April 01, 2011, 06:58:44 am
Maybe this is an edge case when signing up on the fixed period start date?
It isn't. Just tested again today (4th April). Same result: both our test site, running 3.3.5 + 33440 + 33452, and sandbox.civicrm.org (r33484) still set the end date to 2013-03-31 instead of 2012-03-31.

Dave J

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Wrong start date for new membership with fixed period
April 04, 2011, 09:19:55 am
Dave - Thx for retesting this. I've reopened the issue and requested that the team make sure these conditions are covered in the associated webtest:

join date = fixed period start date
join date is after fixed period start date and prior to rollover date
Protect your investment in CiviCRM by  becoming a Member!

davej

  • Ask me questions
  • ****
  • Posts: 404
  • Karma: 21
Re: Wrong start date for new membership with fixed period
April 06, 2011, 06:19:51 am
Thanks Dave G and Kiran,

I've now tested 3.3.5 + patches 33440 + 33452 + 33527 and it works correctly for my test case:

With 3.3.5 + 33440 + 33452 + 33527:
------------------------------------------------
join_date: 2011-04-06
start_date: 2011-04-01
end_date: 2012-03-31

Cheers,

Dave J

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Wrong start date for new membership with fixed period

This forum was archived on 2017-11-26.