Skip to content
Snippets Groups Projects
Commit a037d164 authored by yogeshwar's avatar yogeshwar
Browse files

Fixes: Changed PHP_ROUND_HALF_DOWN to PHP_ROUND_HALF_UP

parent 89ace159
No related branches found
No related tags found
No related merge requests found
......@@ -470,7 +470,7 @@ function getAssociatedProducts($module, $focus, $seid = '', $refModuleName = fal
$taxamount = ($subTotal-$finalDiscount)*$tax_percent/100;
list($before_dot, $after_dot) = explode('.', $taxamount);
if($after_dot[$no_of_decimal_places] == 5) {
$taxamount = round($taxamount, $no_of_decimal_places, PHP_ROUND_HALF_DOWN);
$taxamount = round($taxamount, $no_of_decimal_places, PHP_ROUND_HALF_UP);
} else {
$taxamount = number_format($taxamount, $no_of_decimal_places,'.','');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment