[Vtigercrm-commits] [vtiger-commits] r9993 - in /vtigercrm/branches/5.0.3/modules: Potentials/Potentials.php Products/Products.php Quotes/Quotes.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Dec 21 11:33:58 EST 2006
Author: richie
Date: Thu Dec 21 09:33:46 2006
New Revision: 9993
Log:
Assigned to user missing in quotes and product related list
Modified:
vtigercrm/branches/5.0.3/modules/Potentials/Potentials.php
vtigercrm/branches/5.0.3/modules/Products/Products.php
vtigercrm/branches/5.0.3/modules/Quotes/Quotes.php
Modified: vtigercrm/branches/5.0.3/modules/Potentials/Potentials.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Potentials/Potentials.php (original)
+++ vtigercrm/branches/5.0.3/modules/Potentials/Potentials.php Thu Dec 21 09:33:46 2006
@@ -494,7 +494,16 @@
$returnset = '&return_module=Potentials&return_action=CallRelatedList&return_id='.$id;
- $query = "select vtiger_crmentity.*, vtiger_salesorder.*, vtiger_quotes.subject as quotename, vtiger_account.accountname, vtiger_potential.potentialname from vtiger_salesorder inner join vtiger_crmentity on vtiger_crmentity.crmid=vtiger_salesorder.salesorderid left outer join vtiger_quotes on vtiger_quotes.quoteid=vtiger_salesorder.quoteid left outer join vtiger_account on vtiger_account.accountid=vtiger_salesorder.accountid left outer join vtiger_potential on vtiger_potential.potentialid=vtiger_salesorder.potentialid left join vtiger_sogrouprelation on vtiger_salesorder.salesorderid=vtiger_sogrouprelation.salesorderid left join vtiger_groups on vtiger_groups.groupname=vtiger_sogrouprelation.groupname where vtiger_crmentity.deleted=0 and vtiger_potential.potentialid = ".$id;
+ $query = "select vtiger_crmentity.*, vtiger_salesorder.*, vtiger_quotes.subject as quotename, vtiger_account.accountname, vtiger_potential.potentialname,vtiger_users.user_name
+ from vtiger_salesorder
+ inner join vtiger_crmentity on vtiger_crmentity.crmid=vtiger_salesorder.salesorderid
+ left outer join vtiger_quotes on vtiger_quotes.quoteid=vtiger_salesorder.quoteid
+ left outer join vtiger_account on vtiger_account.accountid=vtiger_salesorder.accountid
+ left outer join vtiger_potential on vtiger_potential.potentialid=vtiger_salesorder.potentialid
+ left join vtiger_sogrouprelation on vtiger_salesorder.salesorderid=vtiger_sogrouprelation.salesorderid
+ left join vtiger_groups on vtiger_groups.groupname=vtiger_sogrouprelation.groupname
+ left join vtiger_users on vtiger_users.id=vtiger_crmentity.smownerid
+ where vtiger_crmentity.deleted=0 and vtiger_potential.potentialid = ".$id;
$log->debug("Exiting get_salesorder method ...");
return GetRelatedList('Potentials','SalesOrder',$focus,$query,$button,$returnset);
Modified: vtigercrm/branches/5.0.3/modules/Products/Products.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Products/Products.php (original)
+++ vtigercrm/branches/5.0.3/modules/Products/Products.php Thu Dec 21 09:33:46 2006
@@ -419,7 +419,8 @@
vtiger_quotes.*,
vtiger_potential.potentialname,
vtiger_account.accountname,
- vtiger_inventoryproductrel.productid
+ vtiger_inventoryproductrel.productid,
+ vtiger_users.user_name
FROM vtiger_quotes
INNER JOIN vtiger_crmentity
ON vtiger_crmentity.crmid = vtiger_quotes.quoteid
@@ -433,6 +434,8 @@
ON vtiger_quotes.quoteid = vtiger_quotegrouprelation.quoteid
LEFT JOIN vtiger_groups
ON vtiger_groups.groupname = vtiger_quotegrouprelation.groupname
+ LEFT JOIN vtiger_users
+ ON vtiger_users.id=vtiger_crmentity.smownerid
WHERE vtiger_crmentity.deleted = 0
AND vtiger_inventoryproductrel.productid = ".$id;
$log->debug("Exiting get_quotes method ...");
@@ -461,7 +464,8 @@
$query = "SELECT vtiger_crmentity.*,
vtiger_purchaseorder.*,
vtiger_products.productname,
- vtiger_inventoryproductrel.productid
+ vtiger_inventoryproductrel.productid,
+ vtiger_users.user_name
FROM vtiger_purchaseorder
INNER JOIN vtiger_crmentity
ON vtiger_crmentity.crmid = vtiger_purchaseorder.purchaseorderid
@@ -473,6 +477,8 @@
ON vtiger_purchaseorder.purchaseorderid = vtiger_pogrouprelation.purchaseorderid
LEFT JOIN vtiger_groups
ON vtiger_groups.groupname = vtiger_pogrouprelation.groupname
+ LEFT JOIN vtiger_users
+ ON vtiger_users.id=vtiger_crmentity.smownerid
WHERE vtiger_crmentity.deleted = 0
AND vtiger_products.productid = ".$id;
$log->debug("Exiting get_purchase_orders method ...");
@@ -501,7 +507,8 @@
$query = "SELECT vtiger_crmentity.*,
vtiger_salesorder.*,
vtiger_products.productname AS productname,
- vtiger_account.accountname
+ vtiger_account.accountname,
+ vtiger_users.user_name
FROM vtiger_salesorder
INNER JOIN vtiger_crmentity
ON vtiger_crmentity.crmid = vtiger_salesorder.salesorderid
@@ -515,6 +522,8 @@
ON vtiger_salesorder.salesorderid = vtiger_sogrouprelation.salesorderid
LEFT JOIN vtiger_groups
ON vtiger_groups.groupname = vtiger_sogrouprelation.groupname
+ LEFT JOIN vtiger_users
+ ON vtiger_users.id=vtiger_crmentity.smownerid
WHERE vtiger_crmentity.deleted = 0
AND vtiger_products.productid = ".$id;
$log->debug("Exiting get_salesorder method ...");
@@ -543,7 +552,8 @@
$query = "SELECT vtiger_crmentity.*,
vtiger_invoice.*,
vtiger_inventoryproductrel.quantity,
- vtiger_account.accountname
+ vtiger_account.accountname,
+ vtiger_users.user_name
FROM vtiger_invoice
INNER JOIN vtiger_crmentity
ON vtiger_crmentity.crmid = vtiger_invoice.invoiceid
@@ -555,6 +565,8 @@
ON vtiger_invoice.invoiceid = vtiger_invoicegrouprelation.invoiceid
LEFT JOIN vtiger_groups
ON vtiger_groups.groupname = vtiger_invoicegrouprelation.groupname
+ LEFT JOIN vtiger_users
+ ON vtiger_users.id=vtiger_crmentity.smownerid
WHERE vtiger_crmentity.deleted = 0
AND vtiger_inventoryproductrel.productid = ".$id;
$log->debug("Exiting get_invoices method ...");
Modified: vtigercrm/branches/5.0.3/modules/Quotes/Quotes.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Quotes/Quotes.php (original)
+++ vtigercrm/branches/5.0.3/modules/Quotes/Quotes.php Thu Dec 21 09:33:46 2006
@@ -168,7 +168,15 @@
else
$returnset = '&return_module=Quotes&return_action=CallRelatedList&return_id='.$id;
- $query = "select vtiger_crmentity.*, vtiger_salesorder.*, vtiger_quotes.subject as quotename, vtiger_account.accountname from vtiger_salesorder inner join vtiger_crmentity on vtiger_crmentity.crmid=vtiger_salesorder.salesorderid left outer join vtiger_quotes on vtiger_quotes.quoteid=vtiger_salesorder.quoteid left outer join vtiger_account on vtiger_account.accountid=vtiger_salesorder.accountid left join vtiger_sogrouprelation on vtiger_salesorder.salesorderid=vtiger_sogrouprelation.salesorderid left join vtiger_groups on vtiger_groups.groupname=vtiger_sogrouprelation.groupname where vtiger_crmentity.deleted=0 and vtiger_salesorder.quoteid = ".$id;
+ $query = "select vtiger_crmentity.*, vtiger_salesorder.*, vtiger_quotes.subject as quotename, vtiger_account.accountname,vtiger_users.user_name
+ from vtiger_salesorder
+ inner join vtiger_crmentity on vtiger_crmentity.crmid=vtiger_salesorder.salesorderid
+ left outer join vtiger_quotes on vtiger_quotes.quoteid=vtiger_salesorder.quoteid
+ left outer join vtiger_account on vtiger_account.accountid=vtiger_salesorder.accountid
+ left join vtiger_sogrouprelation on vtiger_salesorder.salesorderid=vtiger_sogrouprelation.salesorderid
+ left join vtiger_groups on vtiger_groups.groupname=vtiger_sogrouprelation.groupname
+ left join vtiger_users on vtiger_users.id=vtiger_crmentity.smownerid
+ where vtiger_crmentity.deleted=0 and vtiger_salesorder.quoteid = ".$id;
$log->debug("Exiting get_salesorder method ...");
return GetRelatedList('Quotes','SalesOrder',$focus,$query,$button,$returnset);
}
More information about the vtigercrm-commits
mailing list