model changes

This commit is contained in:
gandhimathi 2018-08-31 10:08:24 +05:30
parent 87304b2030
commit 6a1ed4aa3a

View File

@ -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){