fees status changes
This commit is contained in:
parent
fb4133b265
commit
0993b710b6
@ -1759,29 +1759,79 @@ class Fees_status_model extends CI_Model
|
|||||||
|
|
||||||
if($row->ProgramType==REGULARFEES OR $row->ProgramType==LATERALFEES){
|
if($row->ProgramType==REGULARFEES OR $row->ProgramType==LATERALFEES){
|
||||||
foreach ($singleFeesDetails as $Fees){
|
foreach ($singleFeesDetails as $Fees){
|
||||||
|
|
||||||
$insertStudyBook['Sem']=$Fees;
|
$insertStudyBook['Sem']=$Fees;
|
||||||
// insert study material details
|
// check study material status exist or not
|
||||||
$this->db->insert(STUDY_MATERIAL_STATUS, $insertStudyBook);
|
$this->db->select('CourseID');
|
||||||
// insert answer booklet details
|
$this->db->where('CourseID',$row->FeesType);
|
||||||
$this->db->insert(ANSWER_BOOKLET, $insertStudyBook);
|
$this->db->where('Sem',$Fees);
|
||||||
|
$this->db->where('BranchCode',$feesDetails['UpdatedBy']);
|
||||||
|
$this->db->where('StudentID',$feesDetails['StudentID']);
|
||||||
|
$existStudyMaterialDetails = $this->db->get(STUDY_MATERIAL_STATUS);
|
||||||
|
if($existStudyMaterialDetails->num_rows()<1){
|
||||||
|
|
||||||
// insert mark card details
|
// insert study material details
|
||||||
$insertMark['Sem']=$Fees;
|
$this->db->insert(STUDY_MATERIAL_STATUS, $insertStudyBook);
|
||||||
$this->db->insert(CERTIFICATION_STATUS, $insertMark);
|
}
|
||||||
|
// check answer book;et exist or not
|
||||||
|
|
||||||
|
$this->db->select('CourseID');
|
||||||
|
$this->db->where('CourseID',$row->FeesType);
|
||||||
|
$this->db->where('BranchCode',$feesDetails['UpdatedBy']);
|
||||||
|
$this->db->where('StudentID',$feesDetails['StudentID']);
|
||||||
|
$existAnsBookDetails = $this->db->get(ANSWER_BOOKLET);
|
||||||
|
if($existAnsBookDetails->num_rows()<1) {
|
||||||
|
// insert answer booklet details
|
||||||
|
$this->db->insert(ANSWER_BOOKLET, $insertStudyBook);
|
||||||
|
}
|
||||||
|
// check certificate exist or not
|
||||||
|
$this->db->select('CourseID');
|
||||||
|
$this->db->where('CourseID',$row->FeesType);
|
||||||
|
$this->db->where('Sem',$row->Sem_Year);
|
||||||
|
$this->db->where('BranchCode',$feesDetails['UpdatedBy']);
|
||||||
|
$this->db->where('StudentID',$feesDetails['StudentID']);
|
||||||
|
$existAnsBookDetails = $this->db->get(CERTIFICATION_STATUS);
|
||||||
|
if($existAnsBookDetails->num_rows()<1) {
|
||||||
|
// insert mark card details
|
||||||
|
$insertMark['Sem'] = $row->Sem_Year;
|
||||||
|
$this->db->insert(CERTIFICATION_STATUS, $insertMark);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$insertStudyBook['Sem']=$row->Sem_Year;
|
$insertStudyBook['Sem'] = $row->Sem_Year;
|
||||||
// insert study material details
|
$this->db->select('CourseID');
|
||||||
$this->db->insert(STUDY_MATERIAL_STATUS, $insertStudyBook);
|
$this->db->where('CourseID',$row->FeesType);
|
||||||
// insert answer booklet details
|
$this->db->where('BranchCode',$feesDetails['UpdatedBy']);
|
||||||
$this->db->insert(ANSWER_BOOKLET, $insertStudyBook);
|
$this->db->where('StudentID',$feesDetails['StudentID']);
|
||||||
// insert mark card details
|
$existStudyMaterialDetails = $this->db->get(STUDY_MATERIAL_STATUS);
|
||||||
$insertMark['Sem']=$row->Sem_Year;
|
if($existStudyMaterialDetails->num_rows()<1) {
|
||||||
$this->db->insert(CERTIFICATION_STATUS, $insertMark);
|
|
||||||
|
// insert study material details
|
||||||
|
$this->db->insert(STUDY_MATERIAL_STATUS, $insertStudyBook);
|
||||||
|
}
|
||||||
|
// check answer book;et exist or not
|
||||||
|
$this->db->select('CourseID');
|
||||||
|
$this->db->where('CourseID',$row->FeesType);
|
||||||
|
$this->db->where('BranchCode',$feesDetails['UpdatedBy']);
|
||||||
|
$this->db->where('StudentID',$feesDetails['StudentID']);
|
||||||
|
$existAnsBookDetails = $this->db->get(ANSWER_BOOKLET);
|
||||||
|
if($existAnsBookDetails->num_rows()<1) {
|
||||||
|
// insert answer booklet details
|
||||||
|
$this->db->insert(ANSWER_BOOKLET, $insertStudyBook);
|
||||||
|
}
|
||||||
|
// check certificate exist or not
|
||||||
|
$this->db->select('CourseID');
|
||||||
|
$this->db->where('CourseID',$row->FeesType);
|
||||||
|
$this->db->where('BranchCode',$feesDetails['UpdatedBy']);
|
||||||
|
$this->db->where('StudentID',$feesDetails['StudentID']);
|
||||||
|
$existAnsBookDetails = $this->db->get(CERTIFICATION_STATUS);
|
||||||
|
if($existAnsBookDetails->num_rows()<1) {
|
||||||
|
// insert mark card details
|
||||||
|
$insertMark['Sem'] = $row->Sem_Year;
|
||||||
|
$this->db->insert(CERTIFICATION_STATUS, $insertMark);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1805,8 +1855,16 @@ class Fees_status_model extends CI_Model
|
|||||||
$insertDocs['CreatedBy']=$feesDetails['CreatedBy'];
|
$insertDocs['CreatedBy']=$feesDetails['CreatedBy'];
|
||||||
$insertDocs['CreatedOn']=$feesDetails['CreatedOn'];
|
$insertDocs['CreatedOn']=$feesDetails['CreatedOn'];
|
||||||
$insertDocs['CertificationType']=$getEndFeesDetails->CertificationID;
|
$insertDocs['CertificationType']=$getEndFeesDetails->CertificationID;
|
||||||
// insert application details
|
$this->db->select('CourseID');
|
||||||
$this->db->insert(APPLICATION_STATUS,$insertDocs);
|
$this->db->where('CourseID',$courseID);
|
||||||
|
$this->db->where('BranchCode',$feesDetails['UpdatedBy']);
|
||||||
|
$this->db->where('StudentID',$feesDetails['StudentID']);
|
||||||
|
$this->db->where('CertificationType',$getEndFeesDetails->CertificationID);
|
||||||
|
$existAnsBookDetails = $this->db->get(CERTIFICATION_STATUS);
|
||||||
|
if($existAnsBookDetails->num_rows()<1) {
|
||||||
|
// insert application details
|
||||||
|
$this->db->insert(APPLICATION_STATUS, $insertDocs);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user