[Vtigercrm-commits] [vtiger-commits] r7616 - /vtigercrm/trunk/modules/SalesOrder/Save.php

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


Author: saraj
Date: Wed Jun 28 04:28:34 2006
New Revision: 7616

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

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

Modified: vtigercrm/trunk/modules/SalesOrder/Save.php
==============================================================================
--- vtigercrm/trunk/modules/SalesOrder/Save.php (original)
+++ vtigercrm/trunk/modules/SalesOrder/Save.php Wed Jun 28 04:28:34 2006
@@ -29,7 +29,10 @@
 $local_log =& LoggerManager::getLogger('index');
 
 $focus = new SalesOrder();
-
+global $current_user;
+$currencyid=fetchCurrency($current_user->id);
+$rate_symbol = getCurrencySymbolandCRate($currencyid);
+$rate = $rate_symbol['rate'];
 setObjectValuesFromRequest(&$focus);
 
 $focus->save("SalesOrder");
@@ -77,6 +80,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