From 2d51fa9fee7d8a426303e4dfb3674ba2ea2777c1 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Thu, 25 Jan 2018 10:53:03 +0530 Subject: [PATCH] course details changes done --- Apollo/api/application/models/Calltracking_model.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Apollo/api/application/models/Calltracking_model.php b/Apollo/api/application/models/Calltracking_model.php index a253999b..9432b0dc 100755 --- a/Apollo/api/application/models/Calltracking_model.php +++ b/Apollo/api/application/models/Calltracking_model.php @@ -329,8 +329,9 @@ class Calltracking_model extends CI_Model { if ($search['requestedDept'] == EMPLOYEE){ $this->db->where('LT.AssignedTo', $search['requestedBy']); + $this->db->where('LT.CreatedBranch', $search['CreatedBranch']); - } + } if($search['searchDate']!='' OR $search['searchDate']!=null){ /* if(sizeof($search['searchDate']) == '1'){ $this->db->where('LTF.FollowupOn <= ', $search['searchDate'][0]); @@ -420,6 +421,7 @@ class Calltracking_model extends CI_Model { if ($search['requestedDept'] == EMPLOYEE){ $this->db->where('LT.AssignedTo', $search['requestedBy']); + $this->db->where('LT.CreatedBranch', $search['CreatedBranch']); } if(($search['searchDate']!='' OR $search['searchDate']!=null) AND sizeof($search['searchDate']) == '1'){ @@ -570,6 +572,7 @@ class Calltracking_model extends CI_Model { if ($trackingID['requestedDept'] == EMPLOYEE){ $this->db->where('LT.AssignedTo', $trackingID['UpdatedBy']); + $this->db->where('LT.CreatedBranch', $trackingID['CreatedBranch']); } @@ -646,6 +649,8 @@ class Calltracking_model extends CI_Model { if ($reqDept == EMPLOYEE){ $this->db->where('LT.AssignedTo', $updatedBy); + $this->db->where('LT.CreatedBranch', $branchId); + } @@ -727,6 +732,7 @@ class Calltracking_model extends CI_Model { if ($search['requestedDept'] == EMPLOYEE){ $this->db->where('LT.AssignedTo', $search['requestedBy']); + $this->db->where('LT.CreatedBranch', $search['BranchID']); } $this->db->where('LTF.FollowupOn',$todayDate); @@ -778,6 +784,7 @@ class Calltracking_model extends CI_Model { if ($search['requestedDept'] == EMPLOYEE){ $this->db->where('LT.AssignedTo', $search['requestedBy']); + $this->db->where('LT.CreatedBranch', $search['BranchID']); } $this->db->like('LD.CreatedOn', $todayDate, 'after'); @@ -830,6 +837,7 @@ class Calltracking_model extends CI_Model { if ($search['requestedDept'] == EMPLOYEE){ $this->db->where('LT.AssignedTo', $search['requestedBy']); + $this->db->where('LT.CreatedBranch', $search['BranchID']); } $trackDetails=$this->db->get();