changes in followup screen
This commit is contained in:
parent
f42138ae33
commit
b3f2fc10db
@ -276,10 +276,14 @@ class Calltracking_model extends CI_Model {
|
|||||||
|
|
||||||
public function getTrackingFollowup($trackingId=null)
|
public function getTrackingFollowup($trackingId=null)
|
||||||
{
|
{
|
||||||
$this->db->select('InteractionId,TrackingID,FollowupOn,FollowupComments,CreatedOn');
|
$this->db->select('LTF.InteractionId,LTF.TrackingID,LTF.FollowupOn,LTF.FollowupComments,DATE_FORMAT(LTF.CreatedOn, "%d-%m-%Y %h:%i %p") AS CreatedOn,ST.FirstName');
|
||||||
|
|
||||||
|
$this->db->from(LEAD_TRACKING_FOLLOWUP.' as LTF');
|
||||||
|
$this->db->join(LOGIN.' as LO', 'LO.ID = LTF.CreatedBy');
|
||||||
|
$this->db->join(STAFF.' as ST', 'ST.StaffID = LO.StaffID');
|
||||||
$this->db->where('TrackingID',$trackingId);
|
$this->db->where('TrackingID',$trackingId);
|
||||||
$this->db->order_by('InteractionId','DESC');
|
$this->db->order_by('InteractionId','DESC');
|
||||||
$trackingDetails = $this->db->get(LEAD_TRACKING_FOLLOWUP);
|
$trackingDetails = $this->db->get();
|
||||||
return $trackingDetails->result();
|
return $trackingDetails->result();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -356,6 +360,8 @@ class Calltracking_model extends CI_Model {
|
|||||||
$tracking_array["ListCode"]=$row->ListCode;
|
$tracking_array["ListCode"]=$row->ListCode;
|
||||||
$tracking_array["ListName"]=$row->ListName;
|
$tracking_array["ListName"]=$row->ListName;
|
||||||
$tracking_array["followupDetails"]=$this->getTrackingFollowup($row->TrackingID);
|
$tracking_array["followupDetails"]=$this->getTrackingFollowup($row->TrackingID);
|
||||||
|
$tracking_array["collectTrackedID"]=$this->getStudentTrackedID($row->MobileNumber);
|
||||||
|
|
||||||
$result[]=$tracking_array;
|
$result[]=$tracking_array;
|
||||||
|
|
||||||
|
|
||||||
@ -375,5 +381,23 @@ class Calltracking_model extends CI_Model {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* get student tracked id
|
||||||
|
* @params mobile number
|
||||||
|
* created by kms
|
||||||
|
* */
|
||||||
|
public function getStudentTrackedID($stuMobile=null)
|
||||||
|
{
|
||||||
|
$this->db->distinct();
|
||||||
|
$this->db->select('LT.TrackingID,LT.LeadID,PLD.ListCode,PLD.ListName');
|
||||||
|
$this->db->from(LEAD_DETAILS.' as LD');
|
||||||
|
$this->db->join(LEAD_TRACKING.' as LT', 'LT.LeadID = LD.LeadID');
|
||||||
|
$this->db->join(PICK_LIST_DETAILS.' as PLD', 'PLD.ListCode = LT.ActivityStatus');
|
||||||
|
$this->db->where('LD.MobileNumber',$stuMobile);
|
||||||
|
$this->db->order_by('LT.TrackingID','ASC');
|
||||||
|
$studeTrackID = $this->db->get();
|
||||||
|
return $studeTrackID->result();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user