From: Pradeep Nayak Date: Fri, 21 Aug 2015 05:28:03 +0000 (+0530) Subject: --fixed net amount field during update of contribution amount X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=16c305866b1e8552db3299548c79d9d5788ba01c;p=civicrm-core.git --fixed net amount field during update of contribution amount --- diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index fe34941378..ffb02e8458 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -3138,7 +3138,7 @@ WHERE contribution_id = %1 "; return; } if ($context == 'changedAmount' || $context == 'changeFinancialType') { - $itemAmount = $params['trxnParams']['total_amount'] = $params['total_amount'] - $params['prevContribution']->total_amount; + $itemAmount = $params['trxnParams']['total_amount'] = $params['trxnParams']['net_amount'] = $params['total_amount'] - $params['prevContribution']->total_amount; } if ($context == 'changedStatus') { //get all the statuses