fees status model changes for DMC status update

This commit is contained in:
gandhimathi 2018-08-23 10:43:46 +05:30
parent 378758da59
commit 72d37d2a84

View File

@ -537,7 +537,7 @@ class Fees_status_model extends CI_Model
}
// Entry for all status screen except fees
$this->entryForAllStatus($feesPaidDetails,$courseID);
$this->entryForAllStatus($feesPaidDetails,$courseID,substr($feesName,0,3));
}
else{
@ -1701,11 +1701,17 @@ class Fees_status_model extends CI_Model
* Entry for all status update
* created by kms
* */
public function entryForAllStatus($feesDetails=null,$courseID=null){
public function entryForAllStatus($feesDetails=null,$courseID=null,$feesName=null){
$singleFeesDetails=["SEM 1","SEM 2","SEM 3","SEM 4","SEM 5","SEM 6","SEM 7","SEM 8"];
// get pick list expected status
$this->db->select('ListCode,ListName');
$this->db->where('ListName','EXPECTED');
if(strtoupper($feesName)==DMC_CONST){
$this->db->where('ListName','NOT APPLICABLE');
}
else{
$this->db->where('ListName','EXPECTED');
}
$this->db->where('BranchCode',$feesDetails['UpdatedBy']);
$this->db->where('IsActive','1');
$existStatusDetails = $this->db->get(PICK_LIST_DETAILS)->last_row();