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 CiviContribute (Moderator: Donald Lobo) »
  • Membership join date incorrectly modified in payment confirmation
Pages: [1]

Author Topic: Membership join date incorrectly modified in payment confirmation  (Read 1902 times)

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Membership join date incorrectly modified in payment confirmation
May 21, 2009, 06:23:44 pm
We are seeing a behaviour in 2.0.x and 2.2.3 where a CiviContribute join or renew form will lose membership join dates as a member renews, if they select "Pay later by check". The join date is correct after the renewal, but is changed to the start date when the pending status is updated by the administrator.

For many organisations, this issue will impinge their ability to assess a member's support over time, and is significant for those orgs who restrict members from voting until they have been members for a given period.

This issue is http://issues.civicrm.org/jira/browse/CRM-4523

To reproduce on demo:

0. Configure a CiviContribute renewal page with Pay Later enabled

1. Configure a membership for Tester McTester with join_date and start_date = 2008

view membership details

(http://bushi.net.nz/tmp/membership-details-before-renewal.png)

2. Renew the membership using the CiviContribute page, using "Pay later by check" to set payment = pending

3. Check membership details

view membership details

(http://bushi.net.nz/tmp/membership-details-after-renewal.png)

4. Find membership pending as admin, click "edit" for pending membership

5. Change payment status from Pending to Completed.

When you click Save on this form, the join date for the membership will be set incorrectly.

6. Verify that the join date is now incorrect for this membership. In the image below, the join date has changed from 2008 to 2009.

view membership details

(http://bushi.net.nz/tmp/membership-details-after-payment-confirmed.png)


« Last Edit: May 22, 2009, 03:04:57 am by xurizaemon »
@xurizaemon ● www.fuzion.co.nz

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: Membership join date incorrectly modified in payment confirmation
May 21, 2009, 06:40:15 pm
I'm not sure why the end date steps back a day at the payment confirmation stage, either, and I'm not sure if that is correct behaviour but I suspect it isn't.

The two year membership may have resulted from me repeating the test, and thus extending the end date to 2010 and then 2011. But we've observed this repeatedly on real registrations (on 2.0 series also) so I'm pretty confident it's not required for the bug to occur.

This issue affects any payment which is confirmed manually - not just pay-by-check. It's just easiest to demonstrate that way ;)
@xurizaemon ● www.fuzion.co.nz

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: Membership join date incorrectly modified in payment confirmation
August 06, 2009, 10:09:43 pm
The original change (SVN r21582) on the related issue CRM-4523 didn't resolve the issue entirely for us - in fact it seemed to be preventing us from updating pending membership contributions.

I've just filed another patch (against v2.2 branch) on that issue.

Note that the official fix is scheduled for 3.0 now, and the code in Contribute/Form/Contribute.php has changed substantially so my patch against v2.2 won't apply against trunk currently. Hopefully this patch should offer a workaround for people on 2.2.

I don't think they are related, but we had some other membership status issues which are documented in http://forum.civicrm.org/index.php/topic,9077.0.html
« Last Edit: August 06, 2009, 10:32:20 pm by xurizaemon »
@xurizaemon ● www.fuzion.co.nz

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Membership join date incorrectly modified in payment confirmation
August 10, 2009, 02:48:28 am
To exclude pending memberships from $currentMembership array, u can get patch from here : http://forum.civicrm.org/index.php/topic,9077.msg39818.html#msg39818

HTH

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Membership join date incorrectly modified in payment confirmation

This forum was archived on 2017-11-26.