call tracking closed activity in staff login changes done

This commit is contained in:
gandhimathi 2018-05-22 18:29:15 +05:30
parent b9926dac02
commit 0c3f4f0258

View File

@ -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();