From 0c3f4f0258c921c41010d7b779bd70baea808b88 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Tue, 22 May 2018 18:29:15 +0530 Subject: [PATCH] call tracking closed activity in staff login changes done --- Apollo/api/application/models/Calltracking_model.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Apollo/api/application/models/Calltracking_model.php b/Apollo/api/application/models/Calltracking_model.php index c80b481a..bd20bdda 100755 --- a/Apollo/api/application/models/Calltracking_model.php +++ b/Apollo/api/application/models/Calltracking_model.php @@ -1154,6 +1154,10 @@ class Calltracking_model extends CI_Model { $this->db->where('LT.CreatedBranch', $search['CreatedBranch']); } + // condition check if its is staff + if($search['requestedDept']==EMPLOYEE){ + $this->db->where('LT.AssignedTo', $search['requestedBy']); + } $this->db->like('PLD1.ListName', 'CLOSE', 'after'); $this->db->order_by('LT.TrackingID', 'DESC'); $leadDet=$this->db->get();