[Vtigercrm-commits] [vtiger-commits] r7602 - /vtigercrm/trunk/include/utils/ListViewUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 28 05:17:14 EDT 2006
Author: saraj
Date: Wed Jun 28 03:17:11 2006
New Revision: 7602
Log:
changes made to fix the issue in trac id:1142
Modified:
vtigercrm/trunk/include/utils/ListViewUtils.php
Modified: vtigercrm/trunk/include/utils/ListViewUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/ListViewUtils.php (original)
+++ vtigercrm/trunk/include/utils/ListViewUtils.php Wed Jun 28 03:17:11 2006
@@ -973,7 +973,10 @@
{
global $log;
$log->debug("Entering getValue(".$field_result.",". $list_result.",".$fieldname.",".$focus.",".$module.",".$entity_id.",".$list_result_count.",".$mode.",".$popuptype.",".$returnset.",".$viewid.") method ...");
- global $adb;
+ global $adb,$current_user;
+ $currencyid=fetchCurrency($current_user->id);
+ $rate_symbol=getCurrencySymbolandCRate($currencyid);
+ $rate = $rate_symbol['rate'];
$tabname = getParentTab();
$uicolarr=$field_result[$fieldname];
foreach($uicolarr as $key=>$value)
@@ -1016,7 +1019,7 @@
{
if($temp_val != '' && $temp_val != 0)
{ //changes made to remove vtiger_currency symbol infront of each vtiger_potential amount
- $value = $temp_val;
+ $value = convertFromDollar($temp_val,$rate);
}
else
{
@@ -1327,6 +1330,7 @@
$servicetax = getProductTaxPercentage('Service',$entity_id,'default');
$unitprice=$adb->query_result($list_result,$list_result_count,'unit_price');
+ $unitprice = convertFromDollar($unitprice,$rate);
$qty_stock=$adb->query_result($list_result,$list_result_count,'qtyinstock');
$value = '<a href="a" LANGUAGE=javascript onclick=\'set_return_inventory("'.$entity_id.'", "'.br2nl($temp_val).'", "'.$unitprice.'", "'.$qty_stock.'", "'.$vattax.'","'.$salestax.'","'.$servicetax.'","'.$row_id.'"); window.close()\'>'.$temp_val.'</a>';
}
@@ -1339,6 +1343,7 @@
$servicetax = getProductTaxPercentage('Service',$entity_id,'default');
$unitprice=$adb->query_result($list_result,$list_result_count,'unit_price');
+ $unitprice = convertFromDollar($unitprice,$rate);
$value = '<a href="a" LANGUAGE=javascript onclick=\'set_return_inventory_po("'.$entity_id.'", "'.br2nl($temp_val).'", "'.$unitprice.'", "'.$vattax.'","'.$salestax.'","'.$servicetax.'","'.$row_id.'"); window.close()\'>'.$temp_val.'</a>';
}
elseif($popuptype == "inventory_pb")
@@ -1509,6 +1514,10 @@
$value = '<a href="index.php?action=DetailView&module='.$module.'&record='.$entity_id.'&parenttab='.$tabname.'">'.$temp_val.'</a>';
}
}
+ }
+ elseif($fieldname == 'hdnGrandTotal' || $fieldname == 'expectedroi' || $fieldname == 'actualroi' || $fieldname == 'actualcost' || $fieldname == 'budgetcost' || $fieldname == 'expectedrevenue')
+ {
+ $value = convertFromDollar($temp_val,$rate);
}
else
{
More information about the vtigercrm-commits
mailing list