course details changes done

This commit is contained in:
gandhimathi 2018-01-25 17:47:41 +05:30
parent 9e8d4e0d1d
commit d27550f1bf

View File

@ -36,6 +36,9 @@ class Course_Controller extends REST_Controller {
$details['CourseID'] = $this->post('courseID');
$details['CourseName'] = $this->post('courseName');
$details['UniversityID'] = $this->post('universityName');
$details['Specilization1'] = $this->post('specilization1');
$details['Specilization2'] = $this->post('specilization2');
//$details['FeesType'] = $this->post('feesType');
$details['PC'] = $this->post('provFess');
$details['DC'] = $this->post('degreeAmount');
@ -130,6 +133,8 @@ class Course_Controller extends REST_Controller {
$now->setTimezone(new DateTimezone('Asia/Kolkata'));
$details['CourseID'] = $this->post('courseCode');
$details['CourseName'] = $this->post('courseName');
$details['Specilization1'] = $this->post('specilization1');
$details['Specilization2'] = $this->post('specilization2');
$details['IsActive'] = $this->post('status');
$details['PC'] = $this->post('provFess');
$details['DC'] = $this->post('degreeAmount');
@ -138,6 +143,7 @@ class Course_Controller extends REST_Controller {
$details['OtherFees'] = $this->post('otherAmount');
$details['UpdatedBy'] = $this->post('updatedBy');
$details['UpdatedOn'] = $now->format('Y-m-d H:i:s');
$existCourseID = $this->post('existCourseID');
$jsonRegularFeesData=$this->post('regularFeesAmounts');
$jsonLateralFeesData=$this->post('lateralFeesAmounts');
$jsonSemFeesData=$this->post('semFeesAmounts');
@ -151,7 +157,7 @@ class Course_Controller extends REST_Controller {
}
$updateDetails = $this->course_model->updateCourse($details,$jsonSemFeesData);// Check if the users data store contains users (in case the database result returns NULL)
$updateDetails = $this->course_model->updateCourse($details,$jsonSemFeesData,$existCourseID);// Check if the users data store contains users (in case the database result returns NULL)
if ($updateDetails)
{
$updateDetails['status'] = REST_Controller::HTTP_OK;