[Vtigercrm-commits] [vtiger-commits] r4478 - /vtigercrm/trunk/modules/PurchaseOrder/PurchaseOrder.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Mar 27 22:20:07 EST 2006
Author: saraj
Date: Mon Mar 27 20:20:02 2006
New Revision: 4478
Log:
junk code has been removed
Modified:
vtigercrm/trunk/modules/PurchaseOrder/PurchaseOrder.php
Modified: vtigercrm/trunk/modules/PurchaseOrder/PurchaseOrder.php
==============================================================================
--- vtigercrm/trunk/modules/PurchaseOrder/PurchaseOrder.php (original)
+++ vtigercrm/trunk/modules/PurchaseOrder/PurchaseOrder.php Mon Mar 27 20:20:02 2006
@@ -110,16 +110,6 @@
$this->column_fields = getColumnFields('PurchaseOrder');
}
- 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 Order class.
*/
@@ -140,12 +130,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=\'PurchaseOrder\'" type="submit" name="button" value="'.$app_strings['LBL_NEW_TASK'].'"> ';
- }
$returnset = '&return_module=PurchaseOrder&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('PurchaseOrder','Activities',$focus,$query,$button,$returnset);
More information about the vtigercrm-commits
mailing list