From: Web Access Date: Tue, 7 Apr 2015 14:02:16 +0000 (+0530) Subject: Fix for CRm-16228 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=00400e19c742f746118c37283eba8748288cc0f2;p=civicrm-core.git Fix for CRm-16228 --- 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; }