course details changes done

This commit is contained in:
gandhimathi 2017-12-19 18:08:35 +05:30
parent 51b816e969
commit f890c2ce4d

View File

@ -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;