[Vtigercrm-commits] [vtiger-commits] r5613 - /vtigercrm/trunk/modules/Invoice/Invoice.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon May 1 05:29:57 EDT 2006
Author: don
Date: Mon May 1 03:29:53 2006
New Revision: 5613
Log:
logs entry has been included in all functions
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 May 1 03:29:53 2006
@@ -104,29 +104,39 @@
function Invoice() {
$this->log =LoggerManager::getLogger('Invoice');
+ $this->log->debug("Entering Invoice() method ...");
$this->db = new PearDatabase();
$this->column_fields = getColumnFields('Invoice');
+ $this->log->debug("Exiting Invoice method ...");
}
function get_summary_text()
{
+ global $log;
+ $log->debug("Entering get_summary_text() method ...");
+ $log->debug("Exiting get_summary_text method ...");
return $this->name;
}
function get_activities($id)
{
+ global $log;
+ $log->debug("Entering get_activities(".$id.") method ...");
global $app_strings;
require_once('modules/Activities/Activity.php');
- $focus = new Activity();
+ $focus = new Activity();
$button = '';
$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')";
+ $log->debug("Exiting get_activities method ...");
return GetRelatedList('Invoice','Activities',$focus,$query,$button,$returnset);
}
function get_history($id)
{
+ global $log;
+ $log->debug("Entering get_history(".$id.") method ...");
$query = "SELECT contactdetails.lastname, contactdetails.firstname, contactdetails.contactid,
activity.*,seactivityrel.*,crmentity.crmid, crmentity.smownerid, crmentity.modifiedtime,
crmentity.createdtime, crmentity.description, users.user_name
@@ -143,10 +153,13 @@
and seactivityrel.crmid=".$id;
//Don't add order by, because, for security, one more condition will be added with this query in include/RelatedListView.php
+ $log->debug("Exiting get_history method ...");
return getHistory('Invoice',$query,$id);
}
function get_attachments($id)
{
+ global $log;
+ $log->debug("Entering get_attachments(".$id.") method ...");
// Armando Lüscher 18.10.2005 -> §visibleDescription
// Desc: Inserted crm2.createdtime, notes.notecontent description, users.user_name
// Inserted inner join users on crm2.smcreatorid= users.id
@@ -177,6 +190,7 @@
inner join crmentity crm2 on crm2.crmid=attachments.attachmentsid
inner join users on crm2.smcreatorid= users.id
where crmentity.crmid=".$id;
+ $log->debug("Exiting get_attachments method ...");
return getAttachmentsAndNotes('Invoice',$query,$id);
}
More information about the vtigercrm-commits
mailing list