Skip to content

Commit

Permalink
Merge pull request civicrm#100 from Edzelopez/RC46
Browse files Browse the repository at this point in the history
RC-24 Bug fixes and notice error fixes
  • Loading branch information
Edzelopez committed Jul 1, 2015
2 parents 6e3057d + 253d896 commit 9f1e856
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CRM/Contribute/BAO/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -2984,6 +2984,12 @@ public static function updateFinancialAccounts(&$params, $context = NULL, $skipT
&& $context == 'changePaymentInstrument'
) {
return;
}
if (($params['prevContribution']->contribution_status_id == array_search('Partially paid', $contributionStatus))
&& $params['contribution']->contribution_status_id == array_search('Completed', $contributionStatus)
&& $context == 'changedStatus'
) {
return;
}
if ($context == 'changedAmount' || $context == 'changeFinancialType') {
$itemAmount = $params['trxnParams']['total_amount'] = $params['total_amount'] - $params['prevContribution']->total_amount;
Expand Down

0 comments on commit 9f1e856

Please sign in to comment.