commit changes
This commit is contained in:
parent
21e36b789c
commit
b507941d80
@ -131,16 +131,14 @@ class Receive_Enrolment_Fees_Univ_Controller extends REST_Controller {
|
|||||||
$formData['EnrolmentNo'] = $this->post('enrolmentId');;
|
$formData['EnrolmentNo'] = $this->post('enrolmentId');;
|
||||||
|
|
||||||
$getDetails = $this->receive_model->getFormIDFeeDetails($formData);
|
$getDetails = $this->receive_model->getFormIDFeeDetails($formData);
|
||||||
if ($getDetails['Status']=true)
|
if ($getDetails['status']=true)
|
||||||
{
|
{
|
||||||
$getDetails['status'] =true;
|
|
||||||
// Set the response and exit
|
// Set the response and exit
|
||||||
$this->response($getDetails, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code
|
$this->response($getDetails, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code
|
||||||
}
|
}
|
||||||
else if($getDetails['Status']=false){
|
else if($getDetails['status']=false){
|
||||||
$this->response([
|
$this->response([
|
||||||
'message' => $getDetails['Message'],
|
'message' => $getDetails['Message'],
|
||||||
'status' => false
|
|
||||||
], REST_Controller::HTTP_OK); // NOT_FOUND (404) being the HTTP response code
|
], REST_Controller::HTTP_OK); // NOT_FOUND (404) being the HTTP response code
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@ -808,7 +808,7 @@ class Receive_Enrolment_Fees_Univ_model extends CI_Model {
|
|||||||
$this->db->where('SFP.IsActive','1');
|
$this->db->where('SFP.IsActive','1');
|
||||||
$feesDetails = $this->db->get()->last_row();
|
$feesDetails = $this->db->get()->last_row();
|
||||||
if($feesDetails){
|
if($feesDetails){
|
||||||
$feesArray['Status']=true;
|
$feesArray['status']=true;
|
||||||
$feesArray['Message']="Fees paid both student and university";
|
$feesArray['Message']="Fees paid both student and university";
|
||||||
$feesArray['Type']=$fetchRow->Sem_Year;
|
$feesArray['Type']=$fetchRow->Sem_Year;
|
||||||
$feesArray['UniversityPaidAmount']=$fetchRow->UniversityPaidAmount;
|
$feesArray['UniversityPaidAmount']=$fetchRow->UniversityPaidAmount;
|
||||||
@ -816,7 +816,7 @@ class Receive_Enrolment_Fees_Univ_model extends CI_Model {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$feesArray['Status']=true;
|
$feesArray['status']=true;
|
||||||
$feesArray['Message']="University fees paid and student fees pending";
|
$feesArray['Message']="University fees paid and student fees pending";
|
||||||
$feesArray['Type']=$fetchRow->Sem_Year;
|
$feesArray['Type']=$fetchRow->Sem_Year;
|
||||||
$feesArray['UniversityPaidAmount']=$fetchRow->UniversityPaidAmount;
|
$feesArray['UniversityPaidAmount']=$fetchRow->UniversityPaidAmount;
|
||||||
@ -837,7 +837,7 @@ class Receive_Enrolment_Fees_Univ_model extends CI_Model {
|
|||||||
$this->db->where('SFP.IsActive','1');
|
$this->db->where('SFP.IsActive','1');
|
||||||
$feesDetails = $this->db->get()->last_row();
|
$feesDetails = $this->db->get()->last_row();
|
||||||
if($feesDetails){
|
if($feesDetails){
|
||||||
$feesArray['Status']=true;
|
$feesArray['status']=true;
|
||||||
$feesArray['Message']="Fees paid both student and university";
|
$feesArray['Message']="Fees paid both student and university";
|
||||||
$feesArray['Type']=$fetchRow->Sem_Year;
|
$feesArray['Type']=$fetchRow->Sem_Year;
|
||||||
$feesArray['UniversityPaidAmount']=$fetchRow->UniversityPaidAmount;
|
$feesArray['UniversityPaidAmount']=$fetchRow->UniversityPaidAmount;
|
||||||
@ -845,7 +845,7 @@ class Receive_Enrolment_Fees_Univ_model extends CI_Model {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$feesArray['Status']=true;
|
$feesArray['status']=true;
|
||||||
$feesArray['Message']="University fees paid and student fees pending";
|
$feesArray['Message']="University fees paid and student fees pending";
|
||||||
$feesArray['Type']=$fetchRow->Sem_Year;
|
$feesArray['Type']=$fetchRow->Sem_Year;
|
||||||
$feesArray['UniversityPaidAmount']=$fetchRow->UniversityPaidAmount;
|
$feesArray['UniversityPaidAmount']=$fetchRow->UniversityPaidAmount;
|
||||||
@ -855,14 +855,14 @@ class Receive_Enrolment_Fees_Univ_model extends CI_Model {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$feesArray['Status']=false;
|
$feesArray['status']=false;
|
||||||
$feesArray['Message']="Student record is mismatch because of enrolment number is not registered in student course details";
|
$feesArray['Message']="Student record is mismatch because of enrolment number is not registered in student course details";
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
else{
|
else{
|
||||||
$feesArray['Status']=false;
|
$feesArray['status']=false;
|
||||||
$feesArray['Message']="Please check form id";
|
$feesArray['Message']="Please check form id";
|
||||||
}
|
}
|
||||||
return $feesArray;
|
return $feesArray;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user