-
-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dev/financial#74 Create ParticipantPayment record for every participant when registering multiple participants for event #15555
Conversation
(Standard links)
|
92b293b
to
05487f3
Compare
|
Looking at the code I find it more convincing that this was a bug since this appears to be fixing something that was broken rather than changing behaviour - it could even be a recent regression? We should double check when |
Hmm - OK I looked & I think master is OK for this - I can't see evidence this was a recent regression - it probably regressed a while back but I now believe it IS a regression rather than a behaviour change |
cff4814
to
bf8716c
Compare
@mattwire test failure looks related |
bf8716c
to
66558d0
Compare
@mattwire still related fails :-( |
66558d0
to
f92c4b4
Compare
@mattwire still failing :-( |
f92c4b4
to
eee9a82
Compare
eee9a82
to
62c1164
Compare
…in an event registration
5fb827c
to
d67809b
Compare
Closing for now as there is no reasonable chance that I'm going to circle back to this any time soon. Its's being tracked via https://lab.civicrm.org/dev/financial/issues/74 @eileenmcnaughton if you get chance to take a look at any of this, it already has a test here :-) The issue I hit is a rabbit hole of converting follow-on code (ie. receipting code etc) to read from an array instead of an integer variable. I know you've done some cleanup so it might be easier now. |
Overview
We have
ParticipantPayment
andMembershipPayment
records in CiviCRM which link a contribution to a participant / membership and show which contribution was used to "pay" for the participant/membership.ParticipantPayment
is not actually used very much, compared withMembershipPayment
which is used for various UI forms when showing related memberships / contributions etc.It was identified at the sprint in Barcelona that when registering multiple participants a
ParticipantPayment
record was only being created for the primary participant instead of for all participants.Before
Only one participantPayment record created for multiple participant registration
After
One participantPayment record created for each participant in a multiple participant registration
Technical Details
The Order API creates one per participant. The MembershipPayment / ParticipantPayment records are not supposed to show who paid (that can be identified from the contribution) but is supposed to show that "this membership/participant" was paid for from this contribution.
Comments
@mecachisenros @eileenmcnaughton This is what we found at the sprint
Thanks @sarvesh211999 for the unit test