diff --git a/Apollo/api/application/models/Receive_Enrolment_Fees_Univ_model.php b/Apollo/api/application/models/Receive_Enrolment_Fees_Univ_model.php index c8bc52b6..e8d8d6ac 100644 --- a/Apollo/api/application/models/Receive_Enrolment_Fees_Univ_model.php +++ b/Apollo/api/application/models/Receive_Enrolment_Fees_Univ_model.php @@ -474,6 +474,7 @@ class Receive_Enrolment_Fees_Univ_model extends CI_Model { $this->db->from(STUDENTS_FEES_STATUS.' as SFS'); $this->db->join(STUDENTS_FEES_PAID.' as SFP', 'SFP.FeesId = SFS.FeesID'); $this->db->where('SFS.FeesType',$fetchRow->ID); + $this->db->where('SFS.StudentID',$fetchRow->StudentID); $this->db->where('SFP.IsActive','1'); $feesDetails = $this->db->get()->last_row(); if($feesDetails){ @@ -503,6 +504,7 @@ class Receive_Enrolment_Fees_Univ_model extends CI_Model { $this->db->from(STUDENTS_FEES_STATUS.' as SFS'); $this->db->join(STUDENTS_FEES_PAID.' as SFP', 'SFP.FeesId = SFS.FeesID'); $this->db->where('SFS.FeesType',$fetchRow->ID); + $this->db->where('SFS.StudentID',$fetchRow->StudentID); $this->db->where('SFP.IsActive','1'); $feesDetails = $this->db->get()->last_row(); if($feesDetails){