[Vtigercrm-commits] [vtiger-commits] r7619 - /vtigercrm/trunk/modules/Invoice/Save.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 28 06:36:31 EDT 2006
Author: saraj
Date: Wed Jun 28 04:36:28 2006
New Revision: 7619
Log:
changes made to fix the issue in trac id:1142
Modified:
vtigercrm/trunk/modules/Invoice/Save.php
Modified: vtigercrm/trunk/modules/Invoice/Save.php
==============================================================================
--- vtigercrm/trunk/modules/Invoice/Save.php (original)
+++ vtigercrm/trunk/modules/Invoice/Save.php Wed Jun 28 04:36:28 2006
@@ -29,7 +29,10 @@
$local_log =& LoggerManager::getLogger('index');
$focus = new Invoice();
-
+global $current_user;
+$currencyid=fetchCurrency($current_user->id);
+$rate_symbol = getCurrencySymbolandCRate($currencyid);
+$rate = $rate_symbol['rate'];
setObjectValuesFromRequest(&$focus);
$focus->save("Invoice");
@@ -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