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

dev/financial#152 move code only relevant to repeattransaction into that function #18815

Merged
merged 1 commit into from
Oct 21, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Per #18814 I dug into this addRecurSoftCredits and
it simply copies soft credits from the first transaction in the series to the new one. As such
it belongs in repeattransaction not the main body of completeOrder

Before

// Add new soft credit against current $contribution.
    if ($recurringContributionID) {
      CRM_Contribute_BAO_ContributionRecur::addrecurSoftCredit($recurringContributionID, $contributionID);
    }

is in the main flow

After

Above is in the repeattransaction specific flow

Technical Details

Comments

…hat function

Per civicrm#18814 I dug into this addRecurSoftCredits and
it simply copies soft credits from the first transaction in the series to the new one. As such
it belongs in repeattransaction not the main body of completeOrder
@civibot
Copy link

civibot bot commented Oct 21, 2020

(Standard links)

@eileenmcnaughton
Copy link
Contributor Author

test this please

@seamuslee001
Copy link
Contributor

Looks fine to me

@seamuslee001 seamuslee001 merged commit 59d33e1 into civicrm:master Oct 21, 2020
@seamuslee001 seamuslee001 deleted the recursoft branch October 21, 2020 05:26
yashodha referenced this pull request in cividesk/civicrm-core Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants