[Vtigercrm-commits] [vtiger-commits] r7604 - /vtigercrm/trunk/modules/PurchaseOrder/Save.php

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


Author: saraj
Date: Wed Jun 28 03:20:09 2006
New Revision: 7604

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

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

Modified: vtigercrm/trunk/modules/PurchaseOrder/Save.php
==============================================================================
--- vtigercrm/trunk/modules/PurchaseOrder/Save.php (original)
+++ vtigercrm/trunk/modules/PurchaseOrder/Save.php Wed Jun 28 03:20:09 2006
@@ -28,7 +28,10 @@
 $local_log =& LoggerManager::getLogger('index');
 
 $focus = new Order();
-
+global $current_user;
+$currencyid=fetchCurrency($current_user->id);
+$rate_symbol = getCurrencySymbolandCRate($currencyid);
+$rate = $rate_symbol['rate'];
 setObjectValuesFromRequest(&$focus);
 
 //Added code for auto product stock updation on receiving goods
@@ -67,6 +70,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