From f890c2ce4d3f2c9704d71471c7b9ceec496d2384 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Tue, 19 Dec 2017 18:08:35 +0530 Subject: [PATCH] course details changes done --- .../controllers/Fees_Status_Controller.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Apollo/api/application/controllers/Fees_Status_Controller.php b/Apollo/api/application/controllers/Fees_Status_Controller.php index dc80db80..8387d335 100755 --- a/Apollo/api/application/controllers/Fees_Status_Controller.php +++ b/Apollo/api/application/controllers/Fees_Status_Controller.php @@ -121,6 +121,20 @@ class Fees_Status_Controller extends REST_Controller { $details['Others'] = $this->post('other'); $details['CreatedBy'] = $this->post('createdBy'); $details['CreatedOn'] = $now->format('Y-m-d H:i:s'); + /*for track purpose*/ + + $trackDetails['MobileNumber'] = $this->post('mobileNumber'); + $trackDetails['LeadName'] = $this->post('studentName'); + $trackDetails['University'] = $this->post('university'); + $trackDetails['Course'] = $this->post('course'); + $trackDetails['StatusCode'] = $this->post('statusCode'); + $trackDetails['FollowupOn'] = $now->format('d-m-Y'); + $trackDetails['FollowupComments'] = $this->post('commentsForStudent'); + $trackDetails['CreatedBy'] = $this->post('createdBy'); + $trackDetails['CreatedOn'] = $now->format('Y-m-d H:i:s'); + + /*track array end*/ + $detailsChild['StudentID'] = $this->post('studID'); $detailsChild['SessionID'] = $this->post('session'); $detailsChild['BillNO'] = $this->post('billNO'); @@ -131,7 +145,8 @@ class Fees_Status_Controller extends REST_Controller { $detailsChild['InternalComments'] = $this->post('internalComments'); $detailsChild['CreatedBy'] = $this->post('createdBy'); $detailsChild['CreatedOn'] = $now->format('Y-m-d H:i:s'); - $updateDetails = $this->Fees_model->updateFees($details,$detailsChild);// Check if the users data store contains users (in case the database result returns NULL) + + $updateDetails = $this->Fees_model->updateFees($details,$detailsChild,$trackDetails);// Check if the users data store contains users (in case the database result returns NULL) if ($updateDetails) { $updateDetails['status'] = REST_Controller::HTTP_OK;