[Vtigercrm-commits] [vtiger-commits] r7609 - /vtigercrm/trunk/include/utils/utils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 28 05:57:37 EDT 2006
Author: saraj
Date: Wed Jun 28 03:57:33 2006
New Revision: 7609
Log:
changes made to fix the issue in trac id:1142
Modified:
vtigercrm/trunk/include/utils/utils.php
Modified: vtigercrm/trunk/include/utils/utils.php
==============================================================================
--- vtigercrm/trunk/include/utils/utils.php (original)
+++ vtigercrm/trunk/include/utils/utils.php Wed Jun 28 03:57:33 2006
@@ -1216,7 +1216,10 @@
function getUnitPrice($productid)
{
- global $log;
+ global $log,$current_user;
+ $currencyid=fetchCurrency($current_user->id);
+ $rate_symbol = getCurrencySymbolandCRate($currencyid);
+ $rate = $rate_symbol['rate'];
$log->debug("Entering getUnitPrice(".$productid.") method ...");
$log->info("in getUnitPrice productid ".$productid);
@@ -1224,6 +1227,7 @@
$query = "select unit_price from vtiger_products where productid=".$productid;
$result = $adb->query($query);
$up = $adb->query_result($result,0,'unit_price');
+ $up = convertFromDollar($up,$rate);
$log->debug("Exiting getUnitPrice method ...");
return $up;
}
More information about the vtigercrm-commits
mailing list