diff --git a/Apollo/api/application/controllers/Call_Tracking_Controller.php b/Apollo/api/application/controllers/Call_Tracking_Controller.php index c84d79da..391d5a6b 100755 --- a/Apollo/api/application/controllers/Call_Tracking_Controller.php +++ b/Apollo/api/application/controllers/Call_Tracking_Controller.php @@ -114,6 +114,9 @@ class Call_Tracking_Controller extends REST_Controller { $tracking_followup_details['FollowupComments'] = $this->post('comments'); $tracking_followup_details['CreatedBy'] = $this->post('createdBy'); $tracking_followup_details['CreatedOn'] = $now->format('Y-m-d H:i:s'); + $tracking_followup_details['StatusName'] = $this->post('status'); + $tracking_followup_details['AssignedStaff'] = $this->post('assignedTo'); + @@ -195,6 +198,9 @@ class Call_Tracking_Controller extends REST_Controller { $followup_details['CreatedBy'] = $this->post('updatedBy'); $followup_details['FollowupComments'] = $this->post('comments'); $followup_details['CreatedOn'] = $now->format('Y-m-d H:i:s'); + $followup_details['StatusName'] = $this->post('status'); + $followup_details['AssignedStaff'] = $this->post('assignedTo'); + diff --git a/Apollo/api/application/models/Calltracking_model.php b/Apollo/api/application/models/Calltracking_model.php index bd20bdda..6bedbb31 100755 --- a/Apollo/api/application/models/Calltracking_model.php +++ b/Apollo/api/application/models/Calltracking_model.php @@ -541,11 +541,13 @@ class Calltracking_model extends CI_Model { public function getTrackingFollowup($trackingId=null) { - $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->select('LTF.InteractionId,LTF.TrackingID,LTF.FollowupOn,LTF.FollowupComments,DATE_FORMAT(LTF.CreatedOn, "%d-%m-%Y %h:%i %p") AS CreatedOn,ST.FirstName,ST1.FirstName as AssignedName,PLD.ListName as AssignedStatus'); $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->join(LOGIN.' as LO1', 'LO1.ID = LTF.AssignedStaff','left'); + $this->db->join(STAFF.' as ST1', 'ST1.StaffID = LO1.StaffID','left'); + $this->db->join(PICK_LIST_DETAILS.' as PLD', 'PLD.ListCode = LTF.StatusName','left'); $this->db->where('TrackingID',$trackingId); $this->db->order_by('InteractionId','DESC'); $trackingDetails = $this->db->get(); diff --git a/Apollo/api/application/models/Fees_status_model.php b/Apollo/api/application/models/Fees_status_model.php index b3c8fb1d..b5159f81 100755 --- a/Apollo/api/application/models/Fees_status_model.php +++ b/Apollo/api/application/models/Fees_status_model.php @@ -1525,6 +1525,10 @@ class Fees_status_model extends CI_Model $insertfollowup_Details['FollowupComments']=$arrayDetails['FollowupComments']; $insertfollowup_Details['CreatedBy'] = $arrayDetails['CreatedBy']; $insertfollowup_Details['CreatedOn'] = $arrayDetails['CreatedOn']; + $insertfollowup_Details['StatusName'] = $arrayDetails['StatusCode']; + $insertfollowup_Details['AssignedStaff'] = $arrayDetails['CreatedBy']; + + $this->db->insert(LEAD_TRACKING_FOLLOWUP, $insertfollowup_Details); } diff --git a/Apollo/api/application/models/StatusUpdation_model.php b/Apollo/api/application/models/StatusUpdation_model.php index 08ffc84e..9159c600 100755 --- a/Apollo/api/application/models/StatusUpdation_model.php +++ b/Apollo/api/application/models/StatusUpdation_model.php @@ -638,6 +638,8 @@ class StatusUpdation_model extends CI_Model { $insertfollowup_Details['FollowupComments'] = $arrayDetails['FollowupComments']; $insertfollowup_Details['CreatedBy'] = $arrayDetails['CreatedBy']; $insertfollowup_Details['CreatedOn'] = $arrayDetails['CreatedOn']; + $insertfollowup_Details['StatusName'] = $arrayDetails['StatusCode']; + $insertfollowup_Details['AssignedStaff'] = $arrayDetails['CreatedBy']; $this->db->insert(LEAD_TRACKING_FOLLOWUP, $insertfollowup_Details); // this if for insert follow up details @@ -734,6 +736,8 @@ class StatusUpdation_model extends CI_Model { $insertfollowup_Details['FollowupComments'] = $arrayDetails['FollowupComments']; $insertfollowup_Details['CreatedBy'] = $arrayDetails['CreatedBy']; $insertfollowup_Details['CreatedOn'] = $arrayDetails['CreatedOn']; + $insertfollowup_Details['StatusName'] = $arrayDetails['StatusCode']; + $insertfollowup_Details['AssignedStaff'] = $arrayDetails['CreatedBy']; $this->db->insert(LEAD_TRACKING_FOLLOWUP, $insertfollowup_Details); // this if for insert follow up details diff --git a/Apollo/assets/views/callTrackingFollowup.html b/Apollo/assets/views/callTrackingFollowup.html index 3a28dc8f..faddb80f 100755 --- a/Apollo/assets/views/callTrackingFollowup.html +++ b/Apollo/assets/views/callTrackingFollowup.html @@ -339,6 +339,13 @@
{{message.FirstName}}    On   {{message.CreatedOn}}
+
+ Status - {{message.AssignedStatus}} +
+
+ + Assigned To - {{message.AssignedName}} +
{{message.FollowupComments}} diff --git a/Apollo/assets/views/status-update/answer_booklet_status.html b/Apollo/assets/views/status-update/answer_booklet_status.html index 857c0ab1..1c321d17 100755 --- a/Apollo/assets/views/status-update/answer_booklet_status.html +++ b/Apollo/assets/views/status-update/answer_booklet_status.html @@ -191,7 +191,7 @@ ({{s.Sem}}) {{s.ListName}} - {{s.Comments}} + {{s.Comments}} {{s.AnsDate}} {{s.Firstname}} diff --git a/Apollo/assets/views/status-update/application_status.html b/Apollo/assets/views/status-update/application_status.html index 57c8e352..a8db0608 100755 --- a/Apollo/assets/views/status-update/application_status.html +++ b/Apollo/assets/views/status-update/application_status.html @@ -189,7 +189,7 @@ {{s.ListName}} - {{s.Comments}} + {{s.Comments}} {{s.CertificateName}} {{s.AppDate}} {{s.Firstname}} diff --git a/Apollo/assets/views/status-update/certification_status.html b/Apollo/assets/views/status-update/certification_status.html index 4b1445d5..afd3ae1f 100755 --- a/Apollo/assets/views/status-update/certification_status.html +++ b/Apollo/assets/views/status-update/certification_status.html @@ -190,7 +190,7 @@ ({{s.Sem}}) {{s.ListName}} - {{s.Comments}} + {{s.Comments}} {{s.CertificationType}} {{s.CertificationNo}} {{s.CDate}} diff --git a/Apollo/assets/views/status-update/study_material_status.html b/Apollo/assets/views/status-update/study_material_status.html index 81ecbcbf..73458840 100755 --- a/Apollo/assets/views/status-update/study_material_status.html +++ b/Apollo/assets/views/status-update/study_material_status.html @@ -192,7 +192,7 @@ ({{s.Sem}}) {{s.ListName}} - {{s.Comments}} + {{s.Comments}} {{s.SDate}} {{s.Firstname}}