[Vtigercrm-commits] [vtiger-commits] r9108 - in /vtigercrm/trunk/modules/PurchaseOrder: CallRelatedList.php DetailView.php PurchaseOrder.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Aug 24 01:34:55 EDT 2006
Author: richie
Date: Wed Aug 23 23:34:33 2006
New Revision: 9108
Log:
Updated the single pane view feature for detailview in PurchaseOrders Module -- ahmed
Modified:
vtigercrm/trunk/modules/PurchaseOrder/CallRelatedList.php
vtigercrm/trunk/modules/PurchaseOrder/DetailView.php
vtigercrm/trunk/modules/PurchaseOrder/PurchaseOrder.php
Modified: vtigercrm/trunk/modules/PurchaseOrder/CallRelatedList.php
==============================================================================
--- vtigercrm/trunk/modules/PurchaseOrder/CallRelatedList.php (original)
+++ vtigercrm/trunk/modules/PurchaseOrder/CallRelatedList.php Wed Aug 23 23:34:33 2006
@@ -40,8 +40,7 @@
if(isset($_REQUEST['mode']) && $_REQUEST['mode'] != ' ') {
$smarty->assign("OP_MODE",$_REQUEST['mode']);
}
-$smarty->assign("id",$focus->id);
-$smarty->assign("ID",$RECORD );
+$smarty->assign("ID",$focus->id);
$smarty->assign("MODULE",$currentmodule);
$smarty->assign("SINGLE_MOD",$app_strings['PurchaseOrder']);
$smarty->assign("UPDATEINFO",updateInfo($focus->id));
Modified: vtigercrm/trunk/modules/PurchaseOrder/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/PurchaseOrder/DetailView.php (original)
+++ vtigercrm/trunk/modules/PurchaseOrder/DetailView.php Wed Aug 23 23:34:33 2006
@@ -26,7 +26,8 @@
require_once('include/CustomFieldUtil.php');
require_once('include/database/PearDatabase.php');
require_once('include/utils/utils.php');
-global $mod_strings,$app_strings,$theme,$currentModule;
+require_once('user_privileges/default_module_view.php');
+global $mod_strings,$app_strings,$theme,$currentModule,$singlepane_view;
$focus = new Order();
@@ -90,6 +91,15 @@
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
$smarty->assign("EDIT_PERMISSION",isPermitted($currentModule,'EditView',$_REQUEST[record]));
+
+if($singlepane_view == 'true')
+{
+ $related_array = getRelatedLists($currentModule,$focus);
+ $smarty->assign("RELATEDLISTS", $related_array);
+}
+
+$smarty->assign("SinglePane_View", $singlepane_view);
+
$smarty->display("Inventory/InventoryDetailView.tpl");
Modified: vtigercrm/trunk/modules/PurchaseOrder/PurchaseOrder.php
==============================================================================
--- vtigercrm/trunk/modules/PurchaseOrder/PurchaseOrder.php (original)
+++ vtigercrm/trunk/modules/PurchaseOrder/PurchaseOrder.php Wed Aug 23 23:34:33 2006
@@ -27,6 +27,7 @@
require_once('data/SugarBean.php');
require_once('data/CRMEntity.php');
require_once('include/utils/utils.php');
+require_once('user_privileges/default_module_view.php');
// Account is used to store vtiger_account information.
class Order extends CRMEntity {
@@ -135,7 +136,7 @@
*/
function get_activities($id)
{
- global $log;
+ global $log,$singlepane_view;
$log->debug("Entering get_activities(".$id.") method ...");
global $app_strings;
require_once('modules/Calendar/Activity.php');
@@ -143,7 +144,10 @@
$button = '';
- $returnset = '&return_module=PurchaseOrder&return_action=CallRelatedList&return_id='.$id;
+ if($singlepane_view == 'true')
+ $returnset = '&return_module=PurchaseOrder&return_action=DetailView&return_id='.$id;
+ else
+ $returnset = '&return_module=PurchaseOrder&return_action=CallRelatedList&return_id='.$id;
$query = "SELECT vtiger_contactdetails.lastname, vtiger_contactdetails.firstname, vtiger_contactdetails.contactid,vtiger_activity.*,vtiger_seactivityrel.*,vtiger_crmentity.crmid, vtiger_crmentity.smownerid, vtiger_crmentity.modifiedtime, vtiger_users.user_name from vtiger_activity inner join vtiger_seactivityrel on vtiger_seactivityrel.activityid=vtiger_activity.activityid inner join vtiger_crmentity on vtiger_crmentity.crmid=vtiger_activity.activityid left join vtiger_cntactivityrel on vtiger_cntactivityrel.activityid= vtiger_activity.activityid left join vtiger_contactdetails on vtiger_contactdetails.contactid = vtiger_cntactivityrel.contactid left join vtiger_users on vtiger_users.id=vtiger_crmentity.smownerid left join vtiger_activitygrouprelation on vtiger_activitygrouprelation.activityid=vtiger_crmentity.crmid left join vtiger_groups on vtiger_groups.groupname=vtiger_activitygrouprelation.groupname where vtiger_seactivityrel.crmid=".$id." and activitytype='Task' and vtiger_crmentity.deleted=0 and (vtiger_activity.status is not NULL && vtiger_activity.status != 'Completed') and (vtiger_activity.status is not NULL && vtiger_activity.status != 'Deferred') ";
$log->debug("Exiting get_activities method ...");
More information about the vtigercrm-commits
mailing list