[Vtigercrm-commits] [vtiger-commits] r7617 - /vtigercrm/trunk/modules/Quotes/Save.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 28 06:32:09 EDT 2006


Author: saraj
Date: Wed Jun 28 04:32:06 2006
New Revision: 7617

Log:
changes made to fix the issue in trac id:1142

Modified:
    vtigercrm/trunk/modules/Quotes/Save.php

Modified: vtigercrm/trunk/modules/Quotes/Save.php
==============================================================================
--- vtigercrm/trunk/modules/Quotes/Save.php (original)
+++ vtigercrm/trunk/modules/Quotes/Save.php Wed Jun 28 04:32:06 2006
@@ -28,8 +28,10 @@
 
 $local_log =& LoggerManager::getLogger('index');
 
-global $log;
-
+global $log,$current_user;
+$currencyid=fetchCurrency($current_user->id);
+$rate_symbol = getCurrencySymbolandCRate($currencyid);
+$rate = $rate_symbol['rate'];
 $log->debug("Inside Quote Save");
 
 $focus = new Quote();
@@ -75,6 +77,7 @@
 	$prod_status = $_REQUEST[$status_var];
 	$qty = $_REQUEST[$qty_var];
 	$listprice = $_REQUEST[$list_price_var];
+	$listprice = convertToDollar($listprice,$rate);
 	$vat = $_REQUEST[$vat_var];
 	$sales = $_REQUEST[$sales_var];
 	$service = $_REQUEST[$service_var];





More information about the vtigercrm-commits mailing list