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) »
  • Ignore Expired Memberships if Current Membership Available?
Pages: [1]

Author Topic: Ignore Expired Memberships if Current Membership Available?  (Read 958 times)

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Ignore Expired Memberships if Current Membership Available?
September 01, 2013, 06:57:56 am
Is there any way to get search, etc. to ignore expired memberships for a person if a current membership is available?

We recently ran a search to send an additional renewal reminder to expired members, however it also grabbed a number of people that already had renewed and had a current membership. This affects the monthly newsletter recipients as well as the editor has to manually remove expired memberships for those that have a current membership in the same list - it's very time consuming.

I thought there was some fix in the works to keep all memberships merged into a single record, to avoid situations like this? I understand that if they renewed with a different type of membership this may not be possible, but if the membership types are the same, it would be good to eliminate the duplicate records or at least avoid them.

Alternately if there's a way to create a report that does this, I'm all ears.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Ignore Expired Memberships if Current Membership Available?
September 01, 2013, 08:38:59 am

I'm assuming you are using advanced search and/or membership search, right?

I dont think the code attempts to deal with multiple memberships for the same contact (i.e. it treats them separately)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: Ignore Expired Memberships if Current Membership Available?
September 02, 2013, 07:59:20 am
Lobo,

Yes, I've tried all kinds of searches but if there's a way to include an if/then statement in the search, I don't know it and haven't seen documentation for it.  What is needed is:

Search Members with status Expired or Grace
If member also has Membership with status Current then exclude all membership records from Search
Display Contacts meeting the criteria

Thoughts??

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Ignore Expired Memberships if Current Membership Available?
September 02, 2013, 08:21:32 am

I suspect u'll need to do this via  custom search extension

if you do so, please share your changes so others can also benefit

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: Ignore Expired Memberships if Current Membership Available?
September 03, 2013, 09:28:36 am
We'll have to find someone to do the coding, but if it works, I will definitely share.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Ignore Expired Memberships if Current Membership Available?

This forum was archived on 2017-11-26.