-
-
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
[REF] Extract & share code to determine revenue recognition date. #16388
Conversation
(Standard links)
|
CRM/Event/Form/Participant.php
Outdated
@@ -1884,7 +1882,6 @@ protected function preparePaidEventProcessing($params): array { | |||
} | |||
|
|||
$params['fee_level'] = $params['amount_level']; | |||
$contributionParams['total_amount'] = $params['amount']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved up higher
test this please |
3f2d28f
to
462e4bc
Compare
} | ||
} | ||
if ($this->isPaymentOnExistingContribution()) { | ||
$contributionParams['total_amount'] = $this->getParticipantValue('fee_amount'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved up higher
462e4bc
to
9cb73a8
Compare
test this please |
@eileenmcnaughton there is a style issue here
|
9cb73a8
to
5a6aea2
Compare
This looks like a good straight forward extraction adding merge on pass |
Test fails look like they relate @eileenmcnaughton |
This also starts the process of consolidating building the 'contribution params' array
5a6aea2
to
939287a
Compare
@eileenmcnaughton The test failure isn't related, right? |
sigh no |
Overview
Minor code extraction
Before
Code not shared, less efficient method used in one place
After
Code shared
Technical Details
We have moved the code to build contributionParams back to this form so we can start consolidating it within the form, not with an unrelated form
This also starts the process of consolidating building the 'contribution params' array
Comments