From 347ca1059f7b8945b02abec17a4a1954455bddb8 Mon Sep 17 00:00:00 2001 From: Francis Whittle Date: Wed, 20 Jan 2016 16:30:16 +1100 Subject: [PATCH] CRM-17848: Round tax amount when calculated for contribution pages. --- CRM/Contribute/BAO/Contribution/Utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/BAO/Contribution/Utils.php b/CRM/Contribute/BAO/Contribution/Utils.php index a30e26e3e2..a5a20458b2 100644 --- a/CRM/Contribute/BAO/Contribution/Utils.php +++ b/CRM/Contribute/BAO/Contribution/Utils.php @@ -931,7 +931,7 @@ LIMIT 1 */ public static function calculateTaxAmount($amount, $taxRate) { $taxAmount = array(); - $taxAmount['tax_amount'] = ($taxRate / 100) * CRM_Utils_Rule::cleanMoney($amount); + $taxAmount['tax_amount'] = round(($taxRate / 100) * CRM_Utils_Rule::cleanMoney($amount), 2); return $taxAmount; } -- 2.25.1