1414 view call tracker don't display closed status

This commit is contained in:
rajasekar 2019-03-19 11:20:29 +05:30
parent 5f2cc7b62b
commit 5ccd25cabd

View File

@ -619,7 +619,7 @@ $msg='Dear '.$name.', Thank you for enquiring with Apollo Distance Education Col
$this->db->join(ACTIVITY.' as AV', 'AV.ActivityID = LT.ActivityStatus');
$this->db->join(PICK_LIST_DETAILS.' as PLD1', 'PLD1.ListCode = LT.StatusCode');
$this->db->where('PLD1.ListName !=', 'CLOSE');
$this->db->where('PLD1.ListName !=', 'CLOSED');
$this->db->where('LTF.IsActive', '1');
if($search['CreatedBranch'] !='All'){
$this->db->where('LT.CreatedBranch', $search['CreatedBranch']);
@ -670,7 +670,7 @@ $msg='Dear '.$name.', Thank you for enquiring with Apollo Distance Education Col
$leadDet=$this->db->get();
// print_r($this->db->last_query());die();
// print_r($this->db->last_query());die();
if($this->db->affected_rows()==0){
$result_array['trackingStatus']=false;
@ -830,7 +830,7 @@ $msg='Dear '.$name.', Thank you for enquiring with Apollo Distance Education Col
$this->db->join(ACTIVITY.' as AV', 'AV.ActivityID = LT.ActivityStatus');
$this->db->join(PICK_LIST_DETAILS.' as PLD1', 'PLD1.ListCode = LT.StatusCode');
$this->db->where('LTF.IsActive', '1');
$this->db->where('PLD1.ListName !=', 'CLOSE');
$this->db->where('PLD1.ListName !=', 'CLOSED');
if($search['CreatedBranch'] !='All'){
$this->db->where('LT.CreatedBranch', $search['CreatedBranch']);
@ -1213,7 +1213,7 @@ $msg='Dear '.$name.', Thank you for enquiring with Apollo Distance Education Col
}
// $follouwpPendingDetails=$this->todayFollowupDetails($todayFollowupDate,CLOSE,'2');
$follouwpPendingDetails=$this->tillPendingTrackingDetails(CLOSE,$serach);
$follouwpPendingDetails=$this->tillPendingTrackingDetails(CLOSED,$serach);
if($follouwpPendingDetails){
$result_array['todayPendingStatus']=true;
@ -1636,7 +1636,7 @@ $msg='Dear '.$name.', Thank you for enquiring with Apollo Distance Education Col
if($search['requestedDept']==EMPLOYEE){
$this->db->where('LT.AssignedTo', $search['requestedBy']);
}
$this->db->like('PLD1.ListName', 'CLOSE', 'after');
$this->db->like('PLD1.ListName', 'CLOSED', 'after');
$this->db->order_by('LT.TrackingID', 'DESC');
$leadDet=$this->db->get();
if($this->db->affected_rows()==0){
@ -1709,7 +1709,7 @@ $msg='Dear '.$name.', Thank you for enquiring with Apollo Distance Education Col
$this->db->where('LT.CreatedBranch', $search['CreatedBranch']);
}
$this->db->where('PLD1.ListName !=', 'CLOSE');
$this->db->where('PLD1.ListName !=', 'CLOSED');
$this->db->order_by('LT.TrackingID', 'DESC');
$leadDet=$this->db->get();
if($this->db->affected_rows()==0){
@ -1818,7 +1818,7 @@ $msg='Dear '.$name.', Thank you for enquiring with Apollo Distance Education Col
$this->db->join('T_Lead_Details LD','LD.LeadID = LT.LeadID','left');
$this->db->join('T_Lead_Tracking_Followup LTF','LTF.TrackingID = LT.TrackingID','left');
$this->db->join('T_ActivityMaster AM','AM.ActivityID = LT.ActivityStatus','left');
$this->db->where('PD.ListName!="CLOSE"');
$this->db->where('PD.ListName!="CLOSED"');
$this->db->where('LT.ActivityStatus',$track_Details['ActivityStatus']);
$this->db->where('LD.MobileNumber',$lead_Details['MobileNumber']);