[Vtigercrm-commits] [vtiger-commits] r10886 - /vtigercrm/branches/5.0.3/modules/Accounts/Accounts.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Sat May 12 13:12:58 EDT 2007
Author: richie
Date: Sat May 12 11:12:54 2007
New Revision: 10886
Log:
* Fixed the issue in displaying the account name in contacts and potentials list in Account Related List
Modified:
vtigercrm/branches/5.0.3/modules/Accounts/Accounts.php
Modified: vtigercrm/branches/5.0.3/modules/Accounts/Accounts.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Accounts/Accounts.php (original)
+++ vtigercrm/branches/5.0.3/modules/Accounts/Accounts.php Sat May 12 11:12:54 2007
@@ -158,10 +158,13 @@
$query = "SELECT vtiger_contactdetails.*,
vtiger_crmentity.crmid,
vtiger_crmentity.smownerid,
+ vtiger_account.accountname,
case when (vtiger_users.user_name not like '') then vtiger_users.user_name else vtiger_groups.groupname end as user_name
FROM vtiger_contactdetails
INNER JOIN vtiger_crmentity
ON vtiger_crmentity.crmid = vtiger_contactdetails.contactid
+ LEFT JOIN vtiger_account
+ ON vtiger_account.accountid = vtiger_contactdetails.accountid
LEFT JOIN vtiger_contactgrouprelation
ON vtiger_contactdetails.contactid = vtiger_contactgrouprelation.contactid
LEFT JOIN vtiger_groups
@@ -200,11 +203,13 @@
$query = "SELECT vtiger_potential.potentialid, vtiger_potential.accountid,
vtiger_potential.potentialname, vtiger_potential.sales_stage,
vtiger_potential.potentialtype, vtiger_potential.amount,
- vtiger_potential.closingdate, vtiger_potential.potentialtype,
+ vtiger_potential.closingdate, vtiger_potential.potentialtype, vtiger_account.accountname,
case when (vtiger_users.user_name not like '') then vtiger_users.user_name else vtiger_groups.groupname end as user_name,vtiger_crmentity.crmid, vtiger_crmentity.smownerid
FROM vtiger_potential
INNER JOIN vtiger_crmentity
ON vtiger_crmentity.crmid = vtiger_potential.potentialid
+ LEFT JOIN vtiger_account
+ ON vtiger_account.accountid = vtiger_potential.accountid
LEFT JOIN vtiger_users
ON vtiger_crmentity.smownerid = vtiger_users.id
LEFT JOIN vtiger_potentialgrouprelation
More information about the vtigercrm-commits
mailing list