From 79148eaab9a3d54400685be291077c854691aa7c Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Sun, 25 Dec 2016 23:19:31 +0530 Subject: [PATCH] CRM-19800, cleaned money for amount fields ---------------------------------------- * CRM-19800: Incorrect Amount recorded in civicrm_financial_trxn table https://issues.civicrm.org/jira/browse/CRM-19800 --- CRM/Contribute/BAO/Contribution.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index 301e98a39f..64c94bebb2 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -3101,8 +3101,8 @@ INNER JOIN civicrm_activity ON civicrm_activity_contact.activity_id = civicrm_ac if ($contributionStatus == 'Partially paid' && !empty($params['partial_payment_total']) && !empty($params['partial_amount_pay']) ) { - $partialAmtPay = $params['partial_amount_pay']; - $partialAmtTotal = $params['partial_payment_total']; + $partialAmtPay = CRM_Utils_Rule::cleanMoney($params['partial_amount_pay']); + $partialAmtTotal = CRM_Utils_Rule::cleanMoney($params['partial_payment_total']); $relationTypeId = key(CRM_Core_PseudoConstant::accountOptionValues('account_relationship', NULL, " AND v.name LIKE 'Accounts Receivable Account is' ")); $fromFinancialAccountId = CRM_Contribute_PseudoConstant::financialAccountType($params['financial_type_id'], $relationTypeId); -- 2.25.1