The Contribution tab shows correct amounts for Amount and Balance Due
The Participant Listing report shows something different (Fee = 50 Total Paid = 50 Balance = 0)
Scenario nr.2
Event registration with Price Set
fee is 50 euro and is not paid
payment of 20 euro is recorded
Both the contribution tab and the Participant listing report show correct figures.
It seems to me there is a bug in the calculation of the Total Paid and Balance due in the Participant Report. Because at all other places in CiviCRM in scenario 1 the Balance is correct.
Edited
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items 0
Show closed items
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Linked items 0
Link issues together to show that they're related.
Learn more.
Activity
Sort or filter
Newest first
Oldest first
Show all activity
Show comments only
Show history only
magnolia61changed title from Incorrect event fee Balance Due and Total Paid in Participant Listing report to Incorrect event fee Balance & Total Paid in Participant Listing report
changed title from Incorrect event fee Balance Due and Total Paid in Participant Listing report to Incorrect event fee Balance & Total Paid in Participant Listing report
Unfortunately this would be beyond my coding skills. I can read code a bit and can create only very small adjustments. By testing and diagnosing I'm trying to help make CiviCRM better. I would be more than happy to help test different scenarios... (also for PR's you need help with)
:-)
I think I finally found the needle in the haystack on where the problem originates. Or maybe I should say that I found the right haystack to look in, because I do not know where in code the cause lies.
Anyway I have a priceset that looks like this:
BASIC FEE FNTYPE A (select, required, financial type: FNTYPE_A)* 50* 100OPTIONAL FNTYPE A (checkbox, optional, financial type: FNTYPE_A)* 50OPTIONAL FNTYPE B (checkbox, optional, financial type: FNTYPE_B)* 50
I have two different outcomes for the 'Balance Due' when following two different scenarios:
SCENARIO A
register for an event with this priceset. Contribution Pending. Select BASIC FEE: 50
record payment for this 50 euro. Contribution is not completed.
Go to the event participation. Edit it and change the priceset from to: BASIC FEE 100
result is that the total fee is 100 (of which 50 is already paid)
Look at the event/participantListing report.
It shows: Net amount: 100, Total Paid: 50, Balance: 50
SCENARIO B
register for an event with this priceset. Contribution Pending. Select BASIC FEE: 50
record payment for this 50 euro. Contribution is not completed.
Go to the event participation. Edit it and check the checkbox for the OPTIONAL FNTYPE_A: 50
result is that the total fee is 100 (of which 50 is already paid)
Look at the event/participantListing report.
It shows: Net amount: 100, Total Paid: 50, Balance: 50
SCENARIO C (different financial types)
register for an event with this priceset. Contribution Pending. Select BASIC FEE: 50
record payment for this 50 euro. Contribution is not completed.
Go to the event participation. Edit it and check the checkbox for the OPTIONAL FNTYPE_B: 50
result is that the total fee is 100 (of which 50 is already paid)
Look at the event/participantListing report.
It shows: Net amount: 100, Total Paid: 100, Balance: 0
EVENT PARTICIPANT LISTING REPPORT
PRELIMINARY CONCLUSION
When changing pricesets of a particpant things are ok as long as its the same financial type.
When not: the balance due is messed up
Why? I do not have a clue :-)
The use case I can reproduce is when changing event registration, removing a line item of financial type A and adding a line item of financial type B will cause the allocation of the total amount to be wrong by financial type, but the Total will be correct.
Hi @kcristiano, I tried again with current master & 14763 applied.
Unfortunately the report is even more off than earlier in my screencast.
When I edit all three contributions, all have the proper amount for total, paid and balance due though!
:-)
This is solved by @eileen with https://github.com/civicrm/civicrm-core/pull/15664
Tested all 3 scenarios above and Participant listing report show correct amount paid & balance due.
And Bookkeeping report doesn't show ghost line items. :-)