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

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon Feb 27 09:44:20 EST 2006


Author: saraj
Date: Mon Feb 27 07:44:14 2006
New Revision: 3957

Log:
changes made to return currency symbol ana conversion rate

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 Mon Feb 27 07:44:14 2006
@@ -813,9 +813,14 @@
 	
 	elseif($uitype == 71 || $uitype == 72)
 	{
-		$disp_currency = getDisplayCurrency();
-		$editview_label[]=$mod_strings[$fieldlabel].': ('.$disp_currency.')';
-		$fieldvalue[] = $value;
+		$currencyid=fetchCurrency($current_user->id);
+		$currency=getCurrencySymbol($currencyid);
+		$rate = getConversionRate($currencyid,$currency);
+		$editview_label[]=$mod_strings[$fieldlabel].': ('.$currency.')';
+		if($value!='')
+		        $fieldvalue[] = convertFromDollar($value,$rate);
+		else
+		        $fieldvalue[] = $value;
 	}
 	elseif($uitype == 75 || $uitype ==81)
 	{





More information about the vtigercrm-commits mailing list