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 CiviEvent (Moderator: Yashodha Chaku) »
  • Bulk update event fee payment record
Pages: [1]

Author Topic: Bulk update event fee payment record  (Read 850 times)

kmarkley

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 14
  • CiviCRM version: 4.4.3
  • CMS version: Drupal 7.24
  • MySQL version: 5.1.56
  • PHP version: 5.3.27
Bulk update event fee payment record
January 27, 2010, 10:08:05 am
I have just completed importing historical data for past events, and now have participant records going back a couple years including event fees.  The trouble is that none of these records show the event fee as having been paid, which means they are not included in contribution reports.

Is there a way to mark them all as paid?  I tried to accomplish this with bulk update via profile, but you can't put participant and contribution fields into the same profile.  I also tried it with an export/import, but again there was no payment completed field available in the import mapping.

Any pointers would be appreciated.

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: Bulk update event fee payment record
January 27, 2010, 11:16:08 am

i suspect you will need to:

1. import a set of contribution records for the payment info

2. write a scriptto create civicrm_participant_payment records which link the participant record to the contribution record

if you do so, please publish your code so others can benefit

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

kmarkley

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 14
  • CiviCRM version: 4.4.3
  • CMS version: Drupal 7.24
  • MySQL version: 5.1.56
  • PHP version: 5.3.27
Re: Bulk update event fee payment record
January 30, 2010, 11:47:53 am
Hmm.  Looked into it a little bit, and I suspect this may be beyond my capability.

Importing contribution records is straightforward, but I am not sure linking them to participant records is feasible with my data set.  My historical data is all of people buying tickets to performances, and it is not uncommon for folks to attend multiple times.  As far as I can tell, the participant ID is the only way I have to uniquely identify each transaction.  Which suggests that I would have create the civicrm_contribution records and civicrm_participant_payment records simultaneously.

Given that this is historical data, it doesn't seem such a bad thing to leave the contribution and participant records unlinked (it is WAY to late for people to cancel, for instance).  But maybe there are other benefits to linking I'm not thinking of?  And because of the above, once the contribution records are created that's it, there is no further opportunity to link them in the future.

The other idea that I had was to use an export of participant records to create cvs files of both contribution and participant_payment records that are manually imported directly into the database.  Is there a reason this is a bad idea?

jakecivi

  • I post frequently
  • ***
  • Posts: 140
  • Karma: 0
Re: Bulk update event fee payment record
May 09, 2012, 12:45:14 pm
You uniquely identify each transaction with the Contribution ID in the civicrm_contribution table.  You then can link multiple Contributions to a Participant.  Attending the same performance multiple times would require you to create multiple Event records - one for each showing of a particular performance.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Bulk update event fee payment record

This forum was archived on 2017-11-26.