[Vtigercrm-commits] [vtiger-commits] r7757 - in /vtigercrm/trunk/modules/Products: AddProductToPriceBooks.php AddProductsToPriceBook.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Tue Jul 4 05:21:44 EDT 2006


Author: saraj
Date: Tue Jul  4 03:21:40 2006
New Revision: 7757

Log:
* Modified to fix the vtiger_ prefix issue

Modified:
    vtigercrm/trunk/modules/Products/AddProductToPriceBooks.php
    vtigercrm/trunk/modules/Products/AddProductsToPriceBook.php

Modified: vtigercrm/trunk/modules/Products/AddProductToPriceBooks.php
==============================================================================
--- vtigercrm/trunk/modules/Products/AddProductToPriceBooks.php (original)
+++ vtigercrm/trunk/modules/Products/AddProductToPriceBooks.php Tue Jul  4 03:21:40 2006
@@ -57,7 +57,7 @@
 
 $record_string= "Total No of Rows: ".$num_rows;
 
-//Retreiving the array of already releated vtiger_products;
+//Retreiving the array of already releated products;
 
 $sql1="select vtiger_crmentity.crmid, vtiger_pricebookproductrel.pricebookid,vtiger_products.unit_price from vtiger_pricebookproductrel inner join vtiger_crmentity on vtiger_crmentity.crmid=vtiger_pricebookproductrel.productid inner join vtiger_products on vtiger_products.productid=vtiger_pricebookproductrel.productid where vtiger_crmentity.deleted=0 and vtiger_pricebookproductrel.productid=".$productid;
 $res1 = $adb->query($sql1);

Modified: vtigercrm/trunk/modules/Products/AddProductsToPriceBook.php
==============================================================================
--- vtigercrm/trunk/modules/Products/AddProductsToPriceBook.php (original)
+++ vtigercrm/trunk/modules/Products/AddProductsToPriceBook.php Tue Jul  4 03:21:40 2006
@@ -180,7 +180,7 @@
 
 //Retreiving the array of already releated vtiger_products;
 
-$sql1 = "select productid from vtiger_pricebookproductrel where vtiger_pricebookid=".$pricebook_id;
+$sql1 = "select productid from vtiger_pricebookproductrel where pricebookid=".$pricebook_id;
 $res1 = $adb->query($sql1);
 $num_prod_rows = $adb->num_rows($res1);
 $prod_array = Array();
@@ -224,7 +224,7 @@
 for($i=0; $i<$num_rows; $i++)
 {
 	
-	 $log->info("Products :: Showing the List of vtiger_products to be added in price book");
+	 $log->info("Products :: Showing the List of products to be added in price book");
 	$entity_id = $adb->query_result($list_result,$i,"crmid");
 	if(! array_key_exists($entity_id, $prod_array))
 	{





More information about the vtigercrm-commits mailing list