[Vtigercrm-commits] [vtiger-commits] r10872 - /vtigercrm/branches/5.0.3/modules/Products/Products.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri May 11 15:20:58 EDT 2007
Author: richie
Date: Fri May 11 13:20:53 2007
New Revision: 10872
Log:
* Changed the query to get group name if the entity is assigned to group, Fixed #3701
Modified:
vtigercrm/branches/5.0.3/modules/Products/Products.php
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 Fri May 11 13:20:53 2007
@@ -524,7 +524,13 @@
vtiger_potential.potentialname,
vtiger_account.accountname,
vtiger_inventoryproductrel.productid,
- vtiger_users.user_name
+
+ case
+ when (vtiger_users.user_name not like '') then vtiger_users.user_name
+ else vtiger_groups.groupname
+ end
+ as user_name
+
FROM vtiger_quotes
INNER JOIN vtiger_crmentity
ON vtiger_crmentity.crmid = vtiger_quotes.quoteid
@@ -569,7 +575,13 @@
vtiger_purchaseorder.*,
vtiger_products.productname,
vtiger_inventoryproductrel.productid,
- vtiger_users.user_name
+
+ case
+ when (vtiger_users.user_name not like '') then vtiger_users.user_name
+ else vtiger_groups.groupname
+ end
+ as user_name
+
FROM vtiger_purchaseorder
INNER JOIN vtiger_crmentity
ON vtiger_crmentity.crmid = vtiger_purchaseorder.purchaseorderid
@@ -612,7 +624,13 @@
vtiger_salesorder.*,
vtiger_products.productname AS productname,
vtiger_account.accountname,
- vtiger_users.user_name
+
+ case
+ when (vtiger_users.user_name not like '') then vtiger_users.user_name
+ else vtiger_groups.groupname
+ end
+ as user_name
+
FROM vtiger_salesorder
INNER JOIN vtiger_crmentity
ON vtiger_crmentity.crmid = vtiger_salesorder.salesorderid
@@ -657,7 +675,13 @@
vtiger_invoice.*,
vtiger_inventoryproductrel.quantity,
vtiger_account.accountname,
- vtiger_users.user_name
+
+ case
+ when (vtiger_users.user_name not like '') then vtiger_users.user_name
+ else vtiger_groups.groupname
+ end
+ as user_name
+
FROM vtiger_invoice
INNER JOIN vtiger_crmentity
ON vtiger_crmentity.crmid = vtiger_invoice.invoiceid
More information about the vtigercrm-commits
mailing list