[Vtigercrm-commits] [vtiger-commits] r7599 - /vtigercrm/trunk/modules/Products/Save.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 28 03:56:46 EDT 2006
Author: saraj
Date: Wed Jun 28 01:56:42 2006
New Revision: 7599
Log:
changes made to fix the issue in trac id:1142
Modified:
vtigercrm/trunk/modules/Products/Save.php
Modified: vtigercrm/trunk/modules/Products/Save.php
==============================================================================
--- vtigercrm/trunk/modules/Products/Save.php (original)
+++ vtigercrm/trunk/modules/Products/Save.php Wed Jun 28 01:56:42 2006
@@ -24,8 +24,10 @@
require_once('modules/Products/Product.php');
require_once('include/logging.php');
require_once('include/database/PearDatabase.php');
-global $log;
-
+global $log,$current_user;
+$currencyid=fetchCurrency($current_user->id);
+$rate_symbol = getCurrencySymbolandCRate($currencyid);
+$rate = $rate_symbol['rate'];
$focus = new Product();
if(isset($_REQUEST['record']))
{
@@ -45,6 +47,11 @@
{
$value = $_REQUEST[$fieldname];
$focus->column_fields[$fieldname] = $value;
+ }
+ if(isset($_REQUEST['unit_price']))
+ {
+ $value = convertToDollar($_REQUEST['unit_price'],$rate);
+ $focus->column_fields['unit_price'] = $value;
}
}
More information about the vtigercrm-commits
mailing list