From e5c7aba490ab4e431648e78b98320b71fc0e35f3 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Tue, 13 Mar 2018 13:37:25 +0530 Subject: [PATCH] call track changes done --- Apollo/api/application/models/Calltracking_model.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Apollo/api/application/models/Calltracking_model.php b/Apollo/api/application/models/Calltracking_model.php index 57424352..93cb0630 100755 --- a/Apollo/api/application/models/Calltracking_model.php +++ b/Apollo/api/application/models/Calltracking_model.php @@ -557,7 +557,7 @@ class Calltracking_model extends CI_Model { $upateStatus = $this->db->update(LEAD_TRACKING, $updateDetails); $result['followupStatus'] = true; $result['trackingID'] = $updateDetails['TrackingID']; - $result['message'] = "Successfully followup details added"; + $result['message'] = "Successfully followup details updated"; } else { $result['followupStatus'] = false; $result['message'] = "Something went wrong.please try again"; @@ -586,7 +586,7 @@ class Calltracking_model extends CI_Model { public function getLoadFollowupDetails($trackingID) { - $this->db->select('LD.LeadID,LD.LeadName,LD.MobileNumber,LD.IsNewEnquiry,LT.TrackingID,LT.ActivityStatus,LT.AssignedTo,LT.CreatedBranch,BR.BranchName,LT.StatusCode,LT.University,LT.Course,LT.AlternateMobile,LT.Address,ST.StaffID,ST.Firstname,PLD1.ListCode as statusListCode,PLD1.ListName as statusListName,AV.ActivityID,AV.ActivityName'); + $this->db->select('LD.LeadID,LD.LeadName,LD.MobileNumber,LD.IsNewEnquiry,LT.TrackingID,LT.ActivityStatus,LT.AssignedTo,LT.CreatedBranch,BR.BranchName,LT.StatusCode,LT.University,LT.Course,LT.AlternateMobile,LT.Address,LT.ReferredBy,ST.StaffID,ST.Firstname,PLD1.ListCode as statusListCode,PLD1.ListName as statusListName,AV.ActivityID,AV.ActivityName'); $this->db->from(LEAD_DETAILS.' as LD'); $this->db->join(LEAD_TRACKING.' as LT', 'LT.LeadID = LD.LeadID'); $this->db->join(LOGIN.' as LO', 'LO.ID = LT.AssignedTo'); @@ -635,6 +635,7 @@ class Calltracking_model extends CI_Model { $tracking_array["ActivityName"]=$row->ActivityName; $tracking_array["AlternateMobile"]=$row->AlternateMobile; $tracking_array["Address"]=$row->Address; + $tracking_array["ReferredBy"]=$row->ReferredBy; $tracking_array["followupDetails"]=$this->getTrackingFollowup($row->TrackingID); $tracking_array["collectTrackedID"]=$this->getStudentTrackedID($row->MobileNumber,$trackingID['CreatedBranch'],$trackingID['requestedDept'],$trackingID['UpdatedBy']);