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) »
  • Event Income Report Misleading - need to look at actual contributions, not fees
Pages: [1]

Author Topic: Event Income Report Misleading - need to look at actual contributions, not fees  (Read 1858 times)

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Event Income Report Misleading - need to look at actual contributions, not fees
January 31, 2010, 09:48:21 pm
We have a very common use case:  backend registration of users at prices different than the Fee / price set (often "Free", for speakers or staff).  We may make exceptions for various reasons and cannot rely on published fees.  It appears there is a provision for "Recording Payment" in the "Register New Participant" option of the Event drop down.  When recording a payment, however, if the payment is less different than the fee, then the Income report does not show the actual revenue of the event.  In fact, I can't figure out a way to generate the correct report that only pulls contribution records associated with a participant of an event.  The problem is that the contribution must be associated with the participant of a specific event, and not the contact.

I'm concerned about a few things here:
1. A way to satisfy this common use case (where the payment does not match the fee)
2. There is no warning about this when creating a contribution record (BTW - it should fill in the fee amount as default.)
3. The "Income Report" (which I suggest changing to "revenue" since it does not include costs) is misleading (Perhaps "Fee report") unless it counts contributions.
4. I see in the database civicrm_participant_payment which links participants to payments, but I can't see how to integrate that in any of the UI query tools. I would go so far as to say that the all the Find Participant fields (total amount, etc.) should be based on actual contributions, rather than published fees.

Ideally, our organization would fund this development, but unfortunately, I'm (as usual) forced to cry poverty, however I wanted to see if others face this same scenario or have a workaround.

Best,
S.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Event Income Report Misleading - need to look at actual contributions, not fees
January 31, 2010, 11:55:23 pm
Yes, I am very much with you on this. I have struggled with the fact that participant payment records are often wrong and have up til now used the event aggregate custom search which is based on the contribution record. I'm not sure if the version in core deals with multiple participants correctly so you might need to check.

(I use a hacked version which also calculates net & gross of our GST).

It's not as nice as the CiviReport however.

I have recently started updating the participant record amount via code but this is part of a larger integration with our accounting package. The main reason I added this to the integration was so that I could think about using CiviReport.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Event Income Report Misleading - need to look at actual contributions, not fees
February 01, 2010, 11:04:25 am
Check this post from Lobo for our thoughts about some ways to ameliorate some of this:
http://forum.civicrm.org/index.php/topic,11926.msg51205.html#msg51205
Protect your investment in CiviCRM by  becoming a Member!

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: Event Income Report Misleading - need to look at actual contributions, not fees
February 01, 2010, 12:18:51 pm
Hi David:
Yes. I did see that post and thanks so much for you prompt response, but I don't see how that addresses the issue with reporting (and advanced search.) In a nutshell, if the system allows a recorded contribution that is different from the event fee (which IMHO is the RIGHT approach) then the reports, exports and searches which summarize the Fees should be changed to summarize the contributions.  Isn't that what people want to see when they show total revenue for an event? I can't think of a use case that would prefer the current implementation but I'm sure there is one.

As for the implementation, I think there are three areas to address:
1. Reports (Create a report that looks up contributions by participant, not fees)
2. Searches (add contribution field or replace fees)
3. Export (add contributions)

In fact, I wonder if user label shouldn't be "Payment Received" or "Payment" rather than "contribution", since it could easily be confused with Contribution Page entries. 

As for Lobo's suggestion, if you are going to support an "admin" price set, perhaps it should be based on Groups or Roles.  If it's just for Admins, and the reporting works, then they can just put in whatever amount they want as a contribution (a.k.a Payment Received).

jakecivi

  • I post frequently
  • ***
  • Posts: 140
  • Karma: 0
Re: Event Income Report Misleading - need to look at actual contributions, not fees
May 10, 2012, 01:54:07 pm
Here's a good query for that that I've come up with.  Note that it's for a specific event (id=8).  I'm implementing it in a Custom Search right now.  This is an old topic, but maybe someone's still wondering.  Also planning on making this into a Report, too, just to gain the PDF export option.

Code: [Select]
SELECT participant.event_id AS event_id,
contact.id AS contact_id,
contact.display_name AS contact_name,
participant.id AS participant_id,
contrib.id AS contrib_id,
participant.fee_amount AS fee_amount,
sum(if(contrib.contribution_status_id = 1,contrib.total_amount,0)) AS contrib_amount,
(participant.fee_amount - sum(if(contrib.contribution_status_id = 1,contrib.total_amount,0))) AS outstanding_amount,
participant.status_id AS participant_status,
participant.register_date AS register_date,
participant.registered_by_id AS registered_by,
contrib.is_test AS contrib_is_test,
contrib.is_pay_later AS contrib_pay_later,
contrib.contribution_status_id AS contrib_status

FROM
civicrm_participant AS participant
LEFT JOIN civicrm_contact AS contact ON contact.id = participant.contact_id
LEFT JOIN civicrm_participant_payment AS payment ON payment.participant_id = participant.id
LEFT JOIN civicrm_contribution AS contrib ON contrib.id = payment.contribution_id

WHERE participant.event_id = 8
GROUP BY participant.id

jakecivi

  • I post frequently
  • ***
  • Posts: 140
  • Karma: 0
Re: Event Income Report Misleading - need to look at actual contributions, not fees
May 10, 2012, 02:38:02 pm
See also this thread, http://forum.civicrm.org/index.php/topic,24605.msg103584.html , regarding multiple contributions per participant record, as the above query gives correct balances for multiple completed contributions associated with a participant record.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Event Income Report Misleading - need to look at actual contributions, not fees
May 10, 2012, 02:55:12 pm
I have a couple of reports that do stuff a bit like this - but they all have some hard-coding in
1) budgetting report - calculate income by event & total based on values in custom fields
2) actual against budget - similar to above but with actual for term
3) comparing the same class in different terms (using a campaign id to link them)

I'll try to share them at some point - but there's a bit of work involved.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Event Income Report Misleading - need to look at actual contributions, not fees

This forum was archived on 2017-11-26.