fees status issues in student view
This commit is contained in:
parent
cc162651a1
commit
5aa45faa0c
@ -300,6 +300,22 @@ class Studentview_model extends CI_Model
|
||||
else{
|
||||
$storePaidDetails['BalanceAmount']=$storePaidDetails['PayableAmount'] - $paidBillAmount[0]->PaidBillAmount;
|
||||
}
|
||||
// sepearte for student waiver and referral bill list
|
||||
$this->db->select('ifnull(SUM((BillAmount)),0) as StudentWaiverRefAmount');
|
||||
$this->db->where('FeesId',$feeRow->FeesID);
|
||||
$this->db->where_in('ModeOfPayment',$serachArray);
|
||||
$studentWaiverRefAmount = $this->db->get(STUDENTS_FEES_PAID)->result();
|
||||
|
||||
$storePaidDetails['StudentWaiverRefAmount']=$studentWaiverRefAmount[0]->StudentWaiverRefAmount;
|
||||
|
||||
$this->db->select('ifnull(SUM((BillAmount)),0) as StudentPaidAmount');
|
||||
$this->db->where('FeesId',$feeRow->FeesID);
|
||||
$this->db->where('ModeOfPayment !=',WAIVER);
|
||||
$this->db->where('ModeOfPayment !=',REFERRAL);
|
||||
$this->db->where('IsActive', '1');
|
||||
$studentPaidAmount = $this->db->get(STUDENTS_FEES_PAID)->result();
|
||||
|
||||
$storePaidDetails['StudentPaidAmount']=$studentPaidAmount[0]->StudentPaidAmount;
|
||||
$storePaidDetails['BatchName'] = "Not Applicable";
|
||||
$storePaidDetails['BatchDate'] = "";
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user