From 1c009a83606f12d34a4b93ee1cb7c3eb87eff1a8 Mon Sep 17 00:00:00 2001
From: Prasad <prasad@vtiger.com>
Date: Wed, 8 May 2024 22:45:07 +0530
Subject: [PATCH] Fixes #1760: Cleaned up Percentage::convertToUserFormat as
 there is no currency conversion

---
 modules/Vtiger/uitypes/Percentage.php | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/modules/Vtiger/uitypes/Percentage.php b/modules/Vtiger/uitypes/Percentage.php
index cd006fc6f..b046afe29 100644
--- a/modules/Vtiger/uitypes/Percentage.php
+++ b/modules/Vtiger/uitypes/Percentage.php
@@ -32,15 +32,8 @@ class Vtiger_Percentage_UIType extends Vtiger_Base_UIType {
 		if (empty($user)) {
             $user = Users_Record_Model::getCurrentUserModel();
         }
-		$old_no_of_currency_decimals = $user->no_of_currency_decimals;
-        // If decimal separator is "," and no.of decimals is "0" then if we give 8,8 (value:8.8) 
-        // which is becoming round of value i,e "9". 
-        // so by default we are setting no_of_currency_decimals to max value.
-        $user->no_of_currency_decimals = 5;
-
         $currencyField = new CurrencyField($value);
         $display_value = $currencyField->getDisplayValue($user, $skipConversion, $skipFormatting);
-        $user->no_of_currency_decimals = $old_no_of_currency_decimals;
         return $display_value;
     }
 
-- 
GitLab