[Vtigercrm-commits] [vtiger-commits] r5577 - /vtigercrm/trunk/modules/SalesOrder/SalesOrder.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Apr 28 03:50:19 EDT 2006
Author: saraj
Date: Fri Apr 28 01:50:06 2006
New Revision: 5577
Log:
logs entries inserted in all functions
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 Fri Apr 28 01:50:06 2006
@@ -122,14 +122,17 @@
*/
function get_activities($id)
{
+ global $log;
+ $log->debug("Entering get_activities(".$id.") method ...");
global $app_strings;
- require_once('modules/Activities/Activity.php');
+ require_once('modules/Activities/Activity.php');
$focus = new Activity();
$button = '';
$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')";
+ $log->debug("Exiting get_activities method ...");
return GetRelatedList('SalesOrder','Activities',$focus,$query,$button,$returnset);
}
@@ -139,6 +142,8 @@
*/
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
@@ -155,6 +160,7 @@
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('SalesOrder',$query,$id);
}
@@ -164,6 +170,8 @@
*/
function get_attachments($id)
{
+ global $log;
+ $log->debug("Entering get_attachments(".$id.") method ...");
// Armando Lüscher 18.10.2005 -> §visibleDescription
// Desc: Inserted crmentity.createdtime, notes.notecontent description, users.user_name
// Inserted inner join users on crmentity.smcreatorid= users.id
@@ -195,6 +203,7 @@
inner join users on crmentity.smcreatorid= users.id
where crmentity.crmid=".$id."
order by createdtime desc";
+ $log->debug("Exiting get_attachments method ...");
return getAttachmentsAndNotes('SalesOrder',$query,$id,$sid='salesorderid');
}
@@ -204,6 +213,8 @@
*/
function get_invoices($id)
{
+ global $log;
+ $log->debug("Entering get_invoices(".$id.") method ...");
require_once('modules/Invoice/Invoice.php');
$focus = new Invoice();
@@ -213,6 +224,7 @@
$query = "select crmentity.*, invoice.*, account.accountname, salesorder.subject as salessubject from invoice inner join crmentity on crmentity.crmid=invoice.invoiceid left outer join account on account.accountid=invoice.accountid inner join salesorder on salesorder.salesorderid=invoice.salesorderid left join invoicegrouprelation on invoice.invoiceid=invoicegrouprelation.invoiceid left join groups on groups.groupname=invoicegrouprelation.groupname where crmentity.deleted=0 and salesorder.salesorderid=".$id;
+ $log->debug("Exiting get_invoices method ...");
return GetRelatedList('SalesOrder','Invoice',$focus,$query,$button,$returnset);
}
More information about the vtigercrm-commits
mailing list