[Vtigercrm-commits] [vtiger-commits] r9527 - /vtigercrm/trunk/modules/Invoice/EditView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Sep 14 04:01:57 EDT 2006
Author: richie
Date: Thu Sep 14 02:01:26 2006
New Revision: 9527
Log:
Fixed the Sales Order Handling -- By Mickie
Modified:
vtigercrm/trunk/modules/Invoice/EditView.php
Modified: vtigercrm/trunk/modules/Invoice/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Invoice/EditView.php (original)
+++ vtigercrm/trunk/modules/Invoice/EditView.php Thu Sep 14 02:01:26 2006
@@ -111,6 +111,18 @@
$focus->mode = 'edit';
$focus->name=$focus->column_fields['subject'];
+ /*
+ //Added to display the SO's associated products -- when we select SO in Edit Invoice page
+ if(isset($_REQUEST['salesorder_id']) && $_REQUEST['salesorder_id'] !='')
+ {
+ $associated_prod = getAssociatedProducts("SalesOrder",$so_focus,$focus->column_fields['salesorder_id']);
+ }
+
+ $smarty->assign("SALESORDER_ID", $focus->column_fields['salesorder_id']);
+ $smarty->assign("ASSOCIATEDPRODUCTS", $associated_prod);
+ $smarty->assign("MODE", $so_focus->mode);
+ $smarty->assign("AVAILABLE_PRODUCTS", 'true');
+ */
}
else
{
@@ -146,6 +158,17 @@
$so_focus->id = $soid;
$so_focus->retrieve_entity_info($soid,"SalesOrder");
$focus = getConvertSoToInvoice($focus,$so_focus,$soid);
+
+ //Added to display the SO's associated products -- when we select SO in New Invoice page
+ if(isset($_REQUEST['salesorder_id']) && $_REQUEST['salesorder_id'] !='')
+ {
+ $associated_prod = getAssociatedProducts("SalesOrder",$so_focus,$focus->column_fields['salesorder_id']);
+ }
+
+ $smarty->assign("SALESORDER_ID", $focus->column_fields['salesorder_id']);
+ $smarty->assign("ASSOCIATEDPRODUCTS", $associated_prod);
+ $smarty->assign("MODE", $so_focus->mode);
+ $smarty->assign("AVAILABLE_PRODUCTS", 'true');
}
}
@@ -240,6 +263,13 @@
{
$smarty->assign("MODE", $focus->mode);
$se_array=getProductDetailsBlockInfo($focus->mode,"SalesOrder",$so_focus);
+
+ $txtTax = (($so_focus->column_fields['txtTax'] != '')?$so_focus->column_fields['txtTax']:'0.000');
+ $txtAdj = (($so_focus->column_fields['txtAdjustment'] != '')?$so_focus->column_fields['txtAdjustment']:'0.000');
+
+ $associated_prod = getAssociatedProducts("SalesOrder",$so_focus);
+ $smarty->assign("ASSOCIATEDPRODUCTS", $associated_prod);
+ $smarty->assign("MODE", $focus->mode);
}
elseif($focus->mode == 'edit')
{
More information about the vtigercrm-commits
mailing list