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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Recording self-service contributions against households
Pages: [1]

Author Topic: Recording self-service contributions against households  (Read 669 times)

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Recording self-service contributions against households
December 18, 2010, 05:51:58 pm
I have a requirement that any self-service contributions ( for all paid events, pledges, donations, memberships)  be recorded against their household contact.   

This would only impact individuals who are members of an existing household. If they are not part of a household, then the contributions would be recorded in the usual way against the individual contact.

Which hook should I implement to accomplish this?   At this point, the person making the self-service payment will not be given any choice about this. So I do not need to change the user interface.

The reason for this is the organization wants to treat the "household" the same way a bank treats a joint checking account. Each spouse has the ability to make online payments, yet its all recorded in one "account" i.e. the household contact record.

Other ideas/suggestions are welcome. 

Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

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: Recording self-service contributions against households
December 18, 2010, 07:39:39 pm

i'd start off by using hook_civicrm_post on the contribution object and adjusting the contact id as needed

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

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Recording self-service contributions against households
December 22, 2010, 03:49:55 pm
I had another idea: I could use the hook "hook_civicrm_dashboard" to add additional financial info to the member's personal dashboard.  Inside the hook I can query all financial information for that person, as well as all their household members.   

That way as far as the member can see, all financial activity that they are interested in, is displayed in one place.

I was thinking that way the fund raising history for each individual is preserved, even after they get divorced, remarried, etc.
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Recording self-service contributions against households

This forum was archived on 2017-11-26.