fees changes in set fees
This commit is contained in:
parent
cdc94baeb1
commit
ab5a4ca7c6
@ -40,7 +40,7 @@ class Fees_Status_Controller extends REST_Controller {
|
||||
$this->methods['getFeesStructureAssign_post']['limit'] = 1000; // 1000 requests per hour per user/key
|
||||
$this->methods['setFeesForStudent_post']['limit'] = 1000; // 1000 requests per hour per user/key
|
||||
// $this->methods['sendStudentNotification_post']['limit'] = 2000; // 2000 requests per hour per user/key
|
||||
|
||||
$this->methods['deleteSetFeesDetails_post']['limit'] = 1000;
|
||||
|
||||
// load the model
|
||||
$this->load->model('Fees_status_model', 'Fees_model');
|
||||
@ -297,6 +297,29 @@ class Fees_Status_Controller extends REST_Controller {
|
||||
}
|
||||
|
||||
}
|
||||
/*
|
||||
* delete student set fees details
|
||||
* created by kms
|
||||
* */
|
||||
public function deleteSetFeesDetails_post(){
|
||||
$details['FeesID'] = $this->post('feesAssignID');
|
||||
$deleteSetFeesDetails = $this->Fees_model->deleteSetFees($details);
|
||||
if ($deleteSetFeesDetails)
|
||||
{
|
||||
$deleteSetFeesDetails['status'] = REST_Controller::HTTP_OK;
|
||||
// Set the response and exit
|
||||
$this->response($deleteSetFeesDetails, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code
|
||||
}
|
||||
else
|
||||
{
|
||||
// Set the response and exit
|
||||
$this->response([
|
||||
'message' => 'Something went wrong.please try again!',
|
||||
'status' => REST_Controller::HTTP_NOT_FOUND
|
||||
], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user