[Vtigercrm-commits] [vtiger-commits] r7606 - /vtigercrm/trunk/include/utils/CommonUtils.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 28 05:34:28 EDT 2006


Author: saraj
Date: Wed Jun 28 03:34:24 2006
New Revision: 7606

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

Modified:
    vtigercrm/trunk/include/utils/CommonUtils.php

Modified: vtigercrm/trunk/include/utils/CommonUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/CommonUtils.php (original)
+++ vtigercrm/trunk/include/utils/CommonUtils.php Wed Jun 28 03:34:24 2006
@@ -1504,6 +1504,10 @@
 {
 	global $log;
 	$log->debug("Entering setObjectValuesFromRequest(".$focus.") method ...");
+	global $current_user;
+	$currencyid=fetchCurrency($current_user->id);
+	$rate_symbol = getCurrencySymbolandCRate($currencyid);
+	$rate = $rate_symbol['rate'];
 	if(isset($_REQUEST['record']))
 	{
 		$focus->id = $_REQUEST['record'];
@@ -1519,6 +1523,27 @@
 			$value = $_REQUEST[$fieldname];
 			$focus->column_fields[$fieldname] = $value;
 		}
+		if(isset($_REQUEST['txtTax']))
+		{
+			$value = convertToDollar($_REQUEST['txtTax'],$rate);
+			$focus->column_fields['txtTax'] = $value;
+		}
+		if(isset($_REQUEST['txtAdjustment']))
+		{
+			$value = convertToDollar($_REQUEST['txtAdjustment'],$rate);
+			$focus->column_fields['txtAdjustment'] = $value;
+		}
+		if(isset($_REQUEST['hdnSubTotal']))
+		{
+			$value = convertToDollar($_REQUEST['hdnSubTotal'],$rate);
+			$focus->column_fields['hdnSubTotal'] = $value;
+		}
+		if(isset($_REQUEST['hdnGrandTotal']))
+		{
+			$value = convertToDollar($_REQUEST['hdnGrandTotal'],$rate);
+			$focus->column_fields['hdnGrandTotal'] = $value;
+		}
+
 	}
 	$log->debug("Exiting setObjectValuesFromRequest method ...");
 }





More information about the vtigercrm-commits mailing list