From a037d1643fc2b14744eae6b1fc07dc7306262475 Mon Sep 17 00:00:00 2001
From: yogeshwar <yogeshwar@vtigersolution.com>
Date: Thu, 2 May 2024 17:58:53 +0530
Subject: [PATCH] Fixes: Changed PHP_ROUND_HALF_DOWN to PHP_ROUND_HALF_UP

---
 include/utils/EditViewUtils.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/utils/EditViewUtils.php b/include/utils/EditViewUtils.php
index 2694b1360..48d0bb95b 100755
--- a/include/utils/EditViewUtils.php
+++ b/include/utils/EditViewUtils.php
@@ -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,'.','');
         }
-- 
GitLab