course details changes done
This commit is contained in:
parent
90ce9ac855
commit
e5e75d4d79
@ -236,7 +236,7 @@ class Fees_status_model extends CI_Model
|
||||
public function existStudentFeesDetails($student=null){
|
||||
|
||||
$this->db->distinct();
|
||||
$this->db->select('SFS.FeesID,SFS.FeesType,SFS.RollNo,ifnull(SFS.CourseFees,0) as CourseFees,ifnull(SFS.STFOrWR,0) as STFOrWR,ifnull(SFS.Waiver,0) as Waiver,ifnull(SFS.Others,0) as Others,ST.Firstname,ST.MobileNumber,ST.Fathername,CU.CourseName,CU.CourseID,CF.Sem_Year,STC.EnrollmentID,US.UniversityName,SM.SessionName,SM1.SessionName as ToSessionName,CF.ProgramType');
|
||||
$this->db->select('SFS.FeesID,SFS.FeesType,SFS.RollNo,ifnull(SFS.CourseFees,0) as CourseFees,ifnull(SFS.STFOrWR,0) as STFOrWR,ifnull(SFS.Waiver,0) as Waiver,ifnull(SFS.Others,0) as Others,ST.Firstname,ST.MobileNumber,ST.Fathername,CU.CourseName,CU.CourseID,CF.Sem_Year,STC.EnrollmentID,US.UniversityName,US.UniversityShortName,SM.SessionName,SM1.SessionName as ToSessionName,CF.ProgramType');
|
||||
$this->db->from(STUDENTS_FEES_PAID.' as SFP');
|
||||
$this->db->join(STUDENTS_FEES_STATUS.' as SFS','SFP.FeesId = SFS.FeesID');
|
||||
$this->db->join(SESSIONMASTER.' as SM', 'SM.SessionID = SFS.SessionName');
|
||||
@ -277,6 +277,7 @@ class Fees_status_model extends CI_Model
|
||||
$storePaidDetails['EnrollmentID'] = $feeRow->EnrollmentID;
|
||||
$storePaidDetails['CourseName'] = $feeRow->CourseName;
|
||||
$storePaidDetails['UniversityName'] = $feeRow->UniversityName;
|
||||
$storePaidDetails['UniveShortName'] = $feeRow->UniversityShortName;
|
||||
$this->db->select('ifnull(SUM((BillAmount)),0) as PaidBillAmount');
|
||||
$this->db->where('FeesId',$feeRow->FeesID);
|
||||
$paidBillAmount = $this->db->get(STUDENTS_FEES_PAID)->result();
|
||||
@ -290,12 +291,14 @@ class Fees_status_model extends CI_Model
|
||||
}
|
||||
|
||||
// for get paid bill details
|
||||
$this->db->select('ifnull(SUM((BillAmount)),0) as BillAmount,BillNO,BillDate,ModeOfPayment,ReceiptNo,BR.BranchName');
|
||||
$this->db->select('ifnull(SUM((BillAmount)),0) as BillAmount,BillNO,BillDate,ModeOfPayment,ReceiptNo,BR.BranchName,BR.Address,BR.LogoPath,STF.Firstname as ReceivedBy');
|
||||
$this->db->from(STUDENTS_FEES_PAID.' as SFP');
|
||||
$this->db->join(BRANCH.' as BR','BR.BranchCode = SFP.UpdatedBy','left');
|
||||
$this->db->where('FeesId',$feeRow->FeesID);
|
||||
$this->db->order_by('ID',"ASC");
|
||||
$this->db->group_by('BillNO');
|
||||
$this->db->join(LOGIN.' as LO','LO.ID = SFP.CreatedBy');
|
||||
$this->db->join(STAFF.' as STF','STF.StaffID = LO.StaffID');
|
||||
$this->db->where('SFP.FeesId',$feeRow->FeesID);
|
||||
$this->db->order_by('SFP.ID',"ASC");
|
||||
$this->db->group_by('SFP.BillNO');
|
||||
$storePaidDetails['paidDetails']=$this->db->get()->result();
|
||||
$mergeResult[]=$storePaidDetails;
|
||||
|
||||
@ -323,7 +326,7 @@ class Fees_status_model extends CI_Model
|
||||
public function existStudentCourseDefaultFees($student=null){
|
||||
$serachArray = ["PC","TC","DC","MC","OTHER"];
|
||||
$this->db->distinct();
|
||||
$this->db->select('SFS.FeesID,SFS.FeesType,SFS.SessionName,SFS.ToSessionName,SFS.RollNo,ifnull(SFS.CourseFees,0) as CourseFees,ifnull(SFS.STFOrWR,0) as STFOrWR,ifnull(SFS.Waiver,0) as Waiver,ifnull(SFS.Others,0) as Others,ST.Firstname,ST.MobileNumber,ST.Fathername,CU.CourseName,CU.CourseID,STC.EnrollmentID,US.UniversityName');
|
||||
$this->db->select('SFS.FeesID,SFS.FeesType,SFS.SessionName,SFS.ToSessionName,SFS.RollNo,ifnull(SFS.CourseFees,0) as CourseFees,ifnull(SFS.STFOrWR,0) as STFOrWR,ifnull(SFS.Waiver,0) as Waiver,ifnull(SFS.Others,0) as Others,ST.Firstname,ST.MobileNumber,ST.Fathername,CU.CourseName,CU.CourseID,STC.EnrollmentID,US.UniversityName,US.UniversityShortName');
|
||||
$this->db->from(STUDENTS_FEES_PAID.' as SFP');
|
||||
$this->db->join(STUDENTS_FEES_STATUS.' as SFS','SFP.FeesId = SFS.FeesID');
|
||||
$this->db->join(STUDENTS.' as ST', 'ST.StudentID = SFS.StudentID');
|
||||
@ -357,6 +360,7 @@ class Fees_status_model extends CI_Model
|
||||
$storePaidDetails['EnrollmentID'] = $feeRow->EnrollmentID;
|
||||
$storePaidDetails['CourseName'] = $feeRow->CourseName;
|
||||
$storePaidDetails['UniversityName'] = $feeRow->UniversityName;
|
||||
$storePaidDetails['UniveShortName'] = $feeRow->UniversityShortName;
|
||||
$this->db->select('ifnull(SUM((BillAmount)),0) as PaidBillAmount');
|
||||
$this->db->where('FeesId',$feeRow->FeesID);
|
||||
$paidBillAmount = $this->db->get(STUDENTS_FEES_PAID)->result();
|
||||
@ -370,12 +374,14 @@ class Fees_status_model extends CI_Model
|
||||
}
|
||||
|
||||
// for get paid bill details
|
||||
$this->db->select('ifnull(SUM((BillAmount)),0) as BillAmount,BillNO,BillDate,ModeOfPayment,ReceiptNo,BR.BranchName');
|
||||
$this->db->select('ifnull(SUM((BillAmount)),0) as BillAmount,BillNO,BillDate,ModeOfPayment,ReceiptNo,BR.BranchName,BR.Address,BR.LogoPath,STF.Firstname as ReceivedBy');
|
||||
$this->db->from(STUDENTS_FEES_PAID.' as SFP');
|
||||
$this->db->join(BRANCH.' as BR','BR.BranchCode = SFP.UpdatedBy','left');
|
||||
$this->db->where('FeesId',$feeRow->FeesID);
|
||||
$this->db->order_by('ID',"ASC");
|
||||
$this->db->group_by('BillNO');
|
||||
$this->db->join(LOGIN.' as LO','LO.ID = SFP.CreatedBy');
|
||||
$this->db->join(STAFF.' as STF','STF.StaffID = LO.StaffID');
|
||||
$this->db->where('SFP.FeesId',$feeRow->FeesID);
|
||||
$this->db->order_by('SFP.ID',"ASC");
|
||||
$this->db->group_by('SFP.BillNO');
|
||||
$storePaidDetails['paidDetails']=$this->db->get()->result();
|
||||
$mergeResult[]=$storePaidDetails;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user