Skip to content
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

Remove recordPayment function. #15684

Merged
merged 1 commit into from
Nov 5, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Nov 1, 2019

Overview

Looks like we actually got rid of usage of this function - it was originally called by the AdditionalPayment form - but that form now calls Payment.create

Before

Function exists

After

Gone

Technical Details

We've been really clear that people should be using the api to make payments for a long time now so I don't think we need to worry about external code calling this

Comments

Looks like we actually got rid of usage of this function (that was desirable the paralell recordRefundPayment
is currently misbehaving so trying to fix that now
@civibot civibot bot added the master label Nov 1, 2019
@civibot
Copy link

civibot bot commented Nov 1, 2019

(Standard links)

@eileenmcnaughton
Copy link
Contributor Author

test this please

@magnolia61
Copy link
Contributor

Congrats on this milestone step of a long way working to switch over to payment.create :-

@eileenmcnaughton
Copy link
Contributor Author

Thanks @magnolia61 - there has been a lot of mess to fight through

@eileenmcnaughton
Copy link
Contributor Author

test this please

@seamuslee001
Copy link
Contributor

So i did the following

seamus@civicrmdevelopment:~/buildkit/build/47-test/sites/all/modules/civicrm$ grep -ir 'recordPayment' *
CRM/Contribute/Form/AbstractEditPayment.php:        $recordPaymentLink = CRM_Utils_System::url('civicrm/payment',
CRM/Contribute/Form/AbstractEditPayment.php:        CRM_Core_Session::setStatus(ts('Please use the <a href="%1">Record Payment</a> form if you have received an additional payment for this Partially paid contribution record.', [1 => $recordPaymentLink]), ts('Notice'), 'alert');
CRM/Contribute/Form/ContributionView.php:      $this->assign('addRecordPayment', TRUE);
CRM/Contribute/BAO/Contribution.php:  public static function recordPaymentActivity($contributionId, $participantId, $totalAmount, $currency, $trxnDate) {
CRM/Financial/BAO/Payment.php:    CRM_Contribute_BAO_Contribution::recordPaymentActivity($params['contribution_id'], CRM_Utils_Array::value('participant_id', $params), $params['total_amount'], $trxn->currency, $trxn->trxn_date);
CRM/Financial/BAO/Payment.php:  public static function recordPayment($contributionId, $trxnData, $participantId) {
release-notes/5.12.0.md:- **[REF] Extract recordPayment portion
templates/CRM/Contribute/Form/ContributionView.tpl:  {if $addRecordPayment}
templates/CRM/Contribute/Form/ContributionView.tpl:{if $addRecordPayment}
templates/CRM/Event/Form/EventFees.tpl:{assign var=isRecordPayment value=1 }
templates/CRM/Event/Form/EventFees.tpl:          {assign var=isRecordPayment value=0 }
templates/CRM/Event/Form/EventFees.tpl:    {if $accessContribution and ! $participantMode and ($action neq 2 or !$rows.0.contribution_id or $onlinePendingContributionId) and $isRecordPayment and ! $registeredByParticipantId }

Confirmed that recordPayment function is no longer called merging

@seamuslee001 seamuslee001 merged commit e02107d into civicrm:master Nov 5, 2019
@seamuslee001 seamuslee001 deleted the legacy_extract branch November 5, 2019 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants