From 00400e19c742f746118c37283eba8748288cc0f2 Mon Sep 17 00:00:00 2001 From: Web Access Date: Tue, 7 Apr 2015 19:32:16 +0530 Subject: [PATCH] Fix for CRm-16228 --- CRM/Price/BAO/LineItem.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Price/BAO/LineItem.php b/CRM/Price/BAO/LineItem.php index e7157584ab..0f3662ce3f 100644 --- a/CRM/Price/BAO/LineItem.php +++ b/CRM/Price/BAO/LineItem.php @@ -542,10 +542,10 @@ AND li.entity_id = {$entityId} return FALSE; } if ($lineItemId['html_type'] == 'Text') { - $tax = $lineItemId['tax_amount'] / ($lineItemId['unit_price'] * $lineItemId['qty']) * 100; + $tax = round($lineItemId['tax_amount'] / ($lineItemId['unit_price'] * $lineItemId['qty']) * 100, 2); } else { - $tax = ($lineItemId['tax_amount'] / $lineItemId['unit_price']) * 100; + $tax = round(($lineItemId['tax_amount'] / $lineItemId['unit_price']) * 100, 2); } return $tax; } -- 2.25.1