diff --git a/Apollo/api/application/models/Hallticket_model.php b/Apollo/api/application/models/Hallticket_model.php index 944df02b..30fbb4f6 100644 --- a/Apollo/api/application/models/Hallticket_model.php +++ b/Apollo/api/application/models/Hallticket_model.php @@ -1279,6 +1279,22 @@ $studetdetails['CourseName'] = $r->CourseName; if(!empty($fees)) { + + + + + $this->db->select('*'); + $this->db->from('T_Students_Fees_Status'); + $this->db->where('StudentID',$student['StudentID']); + $this->db->where('CourseID',$courseID); + + + $studentcheck = $this->db->get(); + + if($studentcheck ->result()) + { + + $tempArray = array('Hallticket_ID'=>$MASTERID,'StudentID'=>$student['StudentID'],'EnrollmentID'=>$student['EnrollmentID'],'Sem_Year'=>('YEAR'.($key + 1))); $this->db->trans_start(); @@ -1291,6 +1307,8 @@ $studetdetails['CourseName'] = $r->CourseName; $this->db->trans_start(); $this->db->insert('T_Hallticket_Subject_Details',$tempSubjectArray); $this->db->trans_complete(); + + } } @@ -1310,6 +1328,20 @@ $studetdetails['CourseName'] = $r->CourseName; if(!empty($fees)) { + + + $this->db->select('*'); + $this->db->from('T_Students_Fees_Status'); + $this->db->where('StudentID',$student['StudentID']); + $this->db->where('CourseID',$courseID); + + + $studentcheck = $this->db->get(); + + if($studentcheck ->result()) + { + + $tempArray = array('Hallticket_ID'=>$MASTERID,'StudentID'=>$student['StudentID'],'EnrollmentID'=>$student['EnrollmentID'],'Sem_Year'=>('SEM'.($key + 2))); $this->db->trans_start(); @@ -1327,6 +1359,8 @@ $studetdetails['CourseName'] = $r->CourseName; $this->db->trans_complete(); } + + } } } } @@ -1343,6 +1377,18 @@ $studetdetails['CourseName'] = $r->CourseName; if(!empty($fees)) { + + $this->db->select('*'); + $this->db->from('T_Students_Fees_Status'); + $this->db->where('StudentID',$student['StudentID']); + $this->db->where('CourseID',$courseID); + + + $studentcheck = $this->db->get(); + + if($studentcheck ->result()) + { + $tempArray = array('Hallticket_ID'=>$MASTERID,'StudentID'=>$student['StudentID'],'EnrollmentID'=>$student['EnrollmentID'],'Sem_Year'=>('SEM'.($key + 1))); $this->db->trans_start(); @@ -1360,6 +1406,9 @@ $studetdetails['CourseName'] = $r->CourseName; $this->db->trans_complete(); } + + + } } } }