university payment changes
This commit is contained in:
parent
5868c6210c
commit
4980352f1d
@ -446,6 +446,27 @@ class Receive_Enrolment_Fees_Univ_Controller extends REST_Controller {
|
||||
|
||||
}
|
||||
}
|
||||
/*
|
||||
* get payment verfication details
|
||||
* created by kms
|
||||
* */
|
||||
public function paymentVerficationDetails_post(){
|
||||
$fromDetails['UniversityCode']=$this->post('universityID');
|
||||
$fromDetails['UniversityName']=$this->post('universityName');
|
||||
$getVerificationDetails=$this->receive_model->getPaymentVerificationDetails($fromDetails);
|
||||
if($getVerificationDetails['status']==true){
|
||||
$this->response($getVerificationDetails, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code
|
||||
|
||||
}
|
||||
else if($getVerificationDetails['status']==false){
|
||||
$this->response($getVerificationDetails, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code
|
||||
|
||||
}
|
||||
else{
|
||||
$this->response(['details' => 'No list were found', 'status' => false], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code
|
||||
|
||||
}
|
||||
}
|
||||
/*
|
||||
* add university payment details
|
||||
* created by kms
|
||||
|
||||
@ -1327,6 +1327,34 @@ $result['updatedraftStatus'] = false;
|
||||
// }
|
||||
// return $resultArr;
|
||||
// }
|
||||
/*
|
||||
* get payment verification details
|
||||
* created by kms
|
||||
* */
|
||||
public function getPaymentVerificationDetails($search){
|
||||
$this->db->select('UNCD.ID,UNCD.FormMapID,UNCD.PaymentMapID,UNCD.FormID,UNCD.CreditAmount,UNCD.DebitAmount,UNCD.ApprovedDate,UNCD.UniversityCode,UNCD.UniversityName,UNCD.TypeID,ENU.EnrolmentNo');
|
||||
$this->db->from(UNIVERSITYCREDITDEBIY.' as UNCD');
|
||||
$this->db->join(FORMFEESRECEIVEDFROMUNIV.' as UNFR', 'UNFR.ID = UNCD.FormMapID','left');
|
||||
$this->db->join(UNIVERSITYPAYMENT.' as UNP', 'UNP.PID = UNCD.PaymentMapID','left');
|
||||
$this->db->join(ENROLMENTRECEIVEDFROMUNIV.' as ENU', 'ENU.FormID = UNFR.FormID','left');
|
||||
$this->db->order_by('UNCD.ApprovedDate','DESC');
|
||||
$this->db->where('UNCD.UniversityCode',$search['UniversityCode']);
|
||||
$this->db->order_by('UNCD.UniversityName',$search['UniversityName']);
|
||||
$details = $this->db->get();
|
||||
$resultArray=array();
|
||||
if($details->result()){
|
||||
$resultArray['status']=true;
|
||||
$resultArray['details']=$details->result();
|
||||
|
||||
}
|
||||
|
||||
else{
|
||||
$resultArray['status']=false;
|
||||
$resultArray['details']="No list were found";
|
||||
}
|
||||
return $resultArray;
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* add payment details
|
||||
|
||||
Loading…
Reference in New Issue
Block a user