[Vtigercrm-commits] [vtiger-commits] r7607 - /vtigercrm/trunk/modules/PurchaseOrder/EditView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 28 05:43:17 EDT 2006
Author: saraj
Date: Wed Jun 28 03:43:14 2006
New Revision: 7607
Log:
changes made to fix the issue in trac id:1142
Modified:
vtigercrm/trunk/modules/PurchaseOrder/EditView.php
Modified: vtigercrm/trunk/modules/PurchaseOrder/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/PurchaseOrder/EditView.php (original)
+++ vtigercrm/trunk/modules/PurchaseOrder/EditView.php Wed Jun 28 03:43:14 2006
@@ -33,7 +33,10 @@
$focus = new Order();
$smarty = new vtigerCRM_Smarty();
-
+global $current_user;
+$currencyid=fetchCurrency($current_user->id);
+$rate_symbol = getCurrencySymbolandCRate($currencyid);
+$rate = $rate_symbol['rate'];
if(isset($_REQUEST['record']) && $_REQUEST['record'] != '')
{
$focus->id = $_REQUEST['record'];
@@ -121,26 +124,27 @@
$associated_prod = getAssociatedProducts("PurchaseOrder",$focus);
$smarty->assign("ASSOCIATEDPRODUCTS", $associated_prod);
$smarty->assign("MODE", $focus->mode);
- $smarty->assign("TAXVALUE", $focus->column_fields['txtTax']);
- $smarty->assign("ADJUSTMENTVALUE", $focus->column_fields['txtAdjustment']);
- $smarty->assign("SUBTOTAL", $focus->column_fields['hdnSubTotal']);
- $smarty->assign("GRANDTOTAL", $focus->column_fields['hdnGrandTotal']);
+ $smarty->assign("TAXVALUE", convertFromDollar($focus->column_fields['txtTax'],$rate));
+ $smarty->assign("ADJUSTMENTVALUE", convertFromDollar($focus->column_fields['txtAdjustment'],$rate));
+ $smarty->assign("SUBTOTAL", convertFromDollar($focus->column_fields['hdnSubTotal'],$rate));
+ $smarty->assign("GRANDTOTAL", convertFromDollar($focus->column_fields['hdnGrandTotal'],$rate));
}
elseif(isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true')
{
$smarty->assign("ROWCOUNT", $num_of_products);
$smarty->assign("ASSOCIATEDPRODUCTS", $associated_prod);
$smarty->assign("MODE", $focus->mode);
- $smarty->assign("TAXVALUE", $focus->column_fields['txtTax']);
- $smarty->assign("ADJUSTMENTVALUE", $focus->column_fields['txtAdjustment']);
- $smarty->assign("SUBTOTAL", $focus->column_fields['hdnSubTotal']);
- $smarty->assign("GRANDTOTAL", $focus->column_fields['hdnGrandTotal']);
+ $smarty->assign("TAXVALUE", convertFromDollar($focus->column_fields['txtTax'],$rate));
+ $smarty->assign("ADJUSTMENTVALUE", convertFromDollar($focus->column_fields['txtAdjustment'],$rate));
+ $smarty->assign("SUBTOTAL", convertFromDollar($focus->column_fields['hdnSubTotal'],$rate));
+ $smarty->assign("GRANDTOTAL", convertFromDollar($focus->column_fields['hdnGrandTotal'],$rate));
}
elseif((isset($_REQUEST['product_id']) && $_REQUEST['product_id'] != '')) {
$smarty->assign("ROWCOUNT", $num_of_products);
$smarty->assign("ASSOCIATEDPRODUCTS", $associated_prod);
$InvTotal = getInventoryTotal($_REQUEST['return_module'],$_REQUEST['return_id']);
+ $InvTotal = convertFromDollar($InvTotal,$rate);
$smarty->assign("MODE", $focus->mode);
$smarty->assign("TAXVALUE", "0.000");
$smarty->assign("ADJUSTMENTVALUE", "0.000");
More information about the vtigercrm-commits
mailing list