From 16c305866b1e8552db3299548c79d9d5788ba01c Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Fri, 21 Aug 2015 10:58:03 +0530 Subject: [PATCH] --fixed net amount field during update of contribution amount --- CRM/Contribute/BAO/Contribution.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1