[Vtigercrm-commits] [vtiger-commits] r4468 - /vtigercrm/trunk/modules/SalesOrder/SalesOrder.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Mar 27 10:30:40 EST 2006
Author: saraj
Date: Mon Mar 27 08:30:36 2006
New Revision: 4468
Log:
junk code has been removed
Modified:
vtigercrm/trunk/modules/SalesOrder/SalesOrder.php
Modified: vtigercrm/trunk/modules/SalesOrder/SalesOrder.php
==============================================================================
--- vtigercrm/trunk/modules/SalesOrder/SalesOrder.php (original)
+++ vtigercrm/trunk/modules/SalesOrder/SalesOrder.php Mon Mar 27 08:30:36 2006
@@ -116,18 +116,6 @@
$this->column_fields = getColumnFields('SalesOrder');
}
- function create_tables () {
- /*
- //TODO Clint 4/27 - add exception handling logic here if the table can't be created.
- */
-
- }
-
- function drop_tables () {
- /*
- //TODO Clint 4/27 - add exception handling logic here if the table can't be dropped.
- */
- }
/** Function to get summary text
* This function returns name property(ie.,summary text) of the SalesOrder class.
@@ -149,13 +137,7 @@
$button = '';
- if(isPermitted("Activities",1,"") == 'yes')
- {
- $button .= '<input title="'.$app_strings['LBL_NEW_TASK'].'" accessyKey="F" class="button" onclick="this.form.action.value=\'EditView\';this.form.return_action.value=\'DetailView\';this.form.module.value=\'Activities\';this.form.activity_mode.value=\'Task\';this.form.return_module.value=\'SalesOrder\'" type="submit" name="button" value="'.$app_strings['LBL_NEW_TASK'].'"> ';
- }
$returnset = '&return_module=SalesOrder&return_action=DetailView&return_id='.$id;
-
-
$query = "SELECT contactdetails.lastname, contactdetails.firstname, contactdetails.contactid, activity.*,seactivityrel.*,crmentity.crmid, crmentity.smownerid, crmentity.modifiedtime, users.user_name from activity inner join seactivityrel on seactivityrel.activityid=activity.activityid inner join crmentity on crmentity.crmid=activity.activityid left join cntactivityrel on cntactivityrel.activityid= activity.activityid left join contactdetails on contactdetails.contactid = cntactivityrel.contactid left join users on users.id=crmentity.smownerid left join activitygrouprelation on activitygrouprelation.activityid=crmentity.crmid left join groups on groups.groupname=activitygrouprelation.groupname where seactivityrel.crmid=".$id." and (activitytype='Task' or activitytype='Call' or activitytype='Meeting') and crmentity.deleted=0 and (activity.status is not NULL && activity.status != 'Completed') and (activity.status is not NULL && activity.status !='Deferred') or (activity.eventstatus != '' && activity.eventstatus = 'Planned')";
return GetRelatedList('SalesOrder','Activities',$focus,$query,$button,$returnset);
}
More information about the vtigercrm-commits
mailing list