[Vtigercrm-commits] [vtiger-commits] r4487 - /vtigercrm/trunk/modules/Invoice/Invoice.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Mar 27 23:11:21 EST 2006
Author: saraj
Date: Mon Mar 27 21:11:17 2006
New Revision: 4487
Log:
junk code has been removed
Modified:
vtigercrm/trunk/modules/Invoice/Invoice.php
Modified: vtigercrm/trunk/modules/Invoice/Invoice.php
==============================================================================
--- vtigercrm/trunk/modules/Invoice/Invoice.php (original)
+++ vtigercrm/trunk/modules/Invoice/Invoice.php Mon Mar 27 21:11:17 2006
@@ -108,12 +108,6 @@
$this->column_fields = getColumnFields('Invoice');
}
- function create_tables () {
- }
-
- function drop_tables () {
- }
-
function get_summary_text()
{
return $this->name;
@@ -126,10 +120,6 @@
$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=\'Invoice\'" type="submit" name="button" value="'.$app_strings['LBL_NEW_TASK'].'"> ';
- }
$returnset = '&return_module=Invoice&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')";
More information about the vtigercrm-commits
mailing list