[Vtigercrm-commits] [vtiger-commits] r9083 - /vtigercrm/trunk/include/utils/EditViewUtils.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Aug 24 00:39:56 EDT 2006


Author: richie
Date: Wed Aug 23 22:39:52 2006
New Revision: 9083

Log:
changes made to reduce the no. of currency query --Minnie

Modified:
    vtigercrm/trunk/include/utils/EditViewUtils.php

Modified: vtigercrm/trunk/include/utils/EditViewUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/EditViewUtils.php (original)
+++ vtigercrm/trunk/include/utils/EditViewUtils.php Wed Aug 23 22:39:52 2006
@@ -58,11 +58,6 @@
 	$custfld = '';
 	$ui_type[]= $uitype;
 	$editview_fldname[] = $fieldname;
-
-	$currencyid=fetchCurrency($current_user->id);
-	$rate_symbol = getCurrencySymbolandCRate($currencyid);
-	$rate = $rate_symbol['rate'];
-	$currency= $rate_symbol['symbol'];
 
 	if($generatedtype == 2)
 		$mod_strings[$fieldlabel] = $fieldlabel;
@@ -983,6 +978,9 @@
 	
 	elseif($uitype == 71 || $uitype == 72)
 	{
+		$rate_symbol = getCurrencySymbolandCRate($user_info['currency_id']);
+		$rate = $rate_symbol['rate'];
+		$currency= $rate_symbol['symbol'];
 		$editview_label[]=$mod_strings[$fieldlabel].': ('.$currency.')';
 		if($value!='')
 		        $fieldvalue[] = convertFromDollar($value,$rate);





More information about the vtigercrm-commits mailing list