diff --git a/Apollo/api/application/controllers/Call_Tracking_Controller.php b/Apollo/api/application/controllers/Call_Tracking_Controller.php index ed4f2a27..6837b348 100644 --- a/Apollo/api/application/controllers/Call_Tracking_Controller.php +++ b/Apollo/api/application/controllers/Call_Tracking_Controller.php @@ -80,11 +80,14 @@ class Call_Tracking_Controller extends REST_Controller { public function addLeadTrackingDetails_post() { + $now = new DateTime(); + $now->setTimezone(new DateTimezone('Asia/Kolkata')); //store lead details $lead_details['LeadName'] = $this->post('studentName'); $lead_details['MobileNumber'] = $this->post('mobileNumber'); $lead_details['IsNewEnquiry'] = $this->post('enquiryStatus'); $lead_details['CreatedBy'] = $this->post('createdBy'); + $lead_details['CreatedOn'] = $now->format('Y-m-d H:i:s'); //store tracking details $tracking_details['University'] = $this->post('universityID'); $tracking_details['Course'] = $this->post('courseName'); @@ -93,10 +96,12 @@ class Call_Tracking_Controller extends REST_Controller { $tracking_details['StatusCode'] = $this->post('status'); $tracking_details['ReferredBy'] = $this->post('referedBy'); $tracking_details['CreatedBy'] = $this->post('createdBy'); + $tracking_details['CreatedOn'] = $now->format('Y-m-d H:i:s'); //store tracking followup details $tracking_followup_details['FollowupOn'] = $this->post('date'); $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'); diff --git a/Apollo/assets/views/callTrackingDetails.html b/Apollo/assets/views/callTrackingDetails.html index e93ebd32..3ef6d784 100644 --- a/Apollo/assets/views/callTrackingDetails.html +++ b/Apollo/assets/views/callTrackingDetails.html @@ -211,8 +211,6 @@ - @@ -240,7 +238,6 @@ -
S.No - Tracking ID
{{$index+1}} {{p.TrackingID}} {{p.followupDetails }} {{p.LeadName}}