[Vtigercrm-commits] [vtiger-commits] r7737 - in /vtigercrm/trunk/modules: Invoice/EditView.php PurchaseOrder/EditView.php Quotes/EditView.php SalesOrder/EditView.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon Jul 3 08:00:48 EDT 2006


Author: saraj
Date: Mon Jul  3 06:00:41 2006
New Revision: 7737

Log:
* Modified to get the all details of the product when we have product id ie., when we create this entity from Product DetailView or RelatedList

Modified:
    vtigercrm/trunk/modules/Invoice/EditView.php
    vtigercrm/trunk/modules/PurchaseOrder/EditView.php
    vtigercrm/trunk/modules/Quotes/EditView.php
    vtigercrm/trunk/modules/SalesOrder/EditView.php

Modified: vtigercrm/trunk/modules/Invoice/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Invoice/EditView.php (original)
+++ vtigercrm/trunk/modules/Invoice/EditView.php Mon Jul  3 06:00:41 2006
@@ -172,6 +172,8 @@
 	$log->debug("Invoice EditView: Product Id from the request is ".$_REQUEST['product_id']);
 	$num_of_products = getNoOfAssocProducts("Products",$focus,$focus->column_fields['product_id']);
 	$associated_prod = getAssociatedProducts("Products",$focus,$focus->column_fields['product_id']);
+	$smarty->assign("ASSOCIATEDPRODUCTS", $associated_prod);
+	$smarty->assign("AVAILABLE_PRODUCTS", 'true');
 } 
  
  

Modified: vtigercrm/trunk/modules/PurchaseOrder/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/PurchaseOrder/EditView.php (original)
+++ vtigercrm/trunk/modules/PurchaseOrder/EditView.php Mon Jul  3 06:00:41 2006
@@ -56,6 +56,8 @@
 	$log->debug("Purchase Order EditView: Product Id from the request is ".$_REQUEST['product_id']);
         $num_of_products = getNoOfAssocProducts("Products",$focus,$focus->column_fields['product_id']);
         $associated_prod = getAssociatedProducts("Products",$focus,$focus->column_fields['product_id']);
+	$smarty->assign("ASSOCIATEDPRODUCTS", $associated_prod);
+	$smarty->assign("AVAILABLE_PRODUCTS", 'true');
 }
 
 // Get vtiger_vendor address if vtiger_vendorid is given

Modified: vtigercrm/trunk/modules/Quotes/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Quotes/EditView.php (original)
+++ vtigercrm/trunk/modules/Quotes/EditView.php Mon Jul  3 06:00:41 2006
@@ -67,6 +67,8 @@
         $log->debug("Productid Id from the request is ".$_REQUEST['product_id']);
 	$num_of_products = getNoOfAssocProducts("Products",$focus,$focus->column_fields['product_id']);
         $associated_prod = getAssociatedProducts("Products",$focus,$focus->column_fields['product_id']);
+	$smarty->assign("ASSOCIATEDPRODUCTS", $associated_prod);
+	$smarty->assign("AVAILABLE_PRODUCTS", 'true');
 }
 
 // Get Account address if vtiger_account is given

Modified: vtigercrm/trunk/modules/SalesOrder/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/SalesOrder/EditView.php (original)
+++ vtigercrm/trunk/modules/SalesOrder/EditView.php Mon Jul  3 06:00:41 2006
@@ -166,6 +166,8 @@
         $focus->column_fields['product_id'] = $_REQUEST['product_id'];
         $num_of_products = getNoOfAssocProducts("Products",$focus,$focus->column_fields['product_id']);
         $associated_prod = getAssociatedProducts("Products",$focus,$focus->column_fields['product_id']);
+	$smarty->assign("ASSOCIATEDPRODUCTS", $associated_prod);
+	$smarty->assign("AVAILABLE_PRODUCTS", 'true');
 }
 
 // Get Account address if vtiger_account is given





More information about the vtigercrm-commits mailing list