course details changes done
This commit is contained in:
parent
81ce4c557d
commit
ed51624c8d
@ -123,7 +123,7 @@ class Studentview_model extends CI_Model
|
|||||||
* */
|
* */
|
||||||
public function getStudentFeesDetails($studentID=null,$courseID=null){
|
public function getStudentFeesDetails($studentID=null,$courseID=null){
|
||||||
$this->db->distinct();
|
$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,CF.Sem_Year,CF.FeesType as CourseFeesType,SM.SessionName,SM1.SessionName as ToSessionName');
|
$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,CF.Sem_Year,CF.FeesType as CourseFeesType,SM.SessionName,SM1.SessionName as ToSessionName,CF.ProgramType');
|
||||||
$this->db->from(STUDENTS_FEES_STATUS.' as SFS');
|
$this->db->from(STUDENTS_FEES_STATUS.' as SFS');
|
||||||
$this->db->join(SESSIONMASTER.' as SM', 'SM.SessionID = SFS.SessionName');
|
$this->db->join(SESSIONMASTER.' as SM', 'SM.SessionID = SFS.SessionName');
|
||||||
$this->db->join(SESSIONMASTER.' as SM1', 'SM1.SessionID = SFS.ToSessionName','left');
|
$this->db->join(SESSIONMASTER.' as SM1', 'SM1.SessionID = SFS.ToSessionName','left');
|
||||||
@ -138,6 +138,7 @@ class Studentview_model extends CI_Model
|
|||||||
$storePaidDetails['FeesID'] = $feeRow->FeesID;
|
$storePaidDetails['FeesID'] = $feeRow->FeesID;
|
||||||
$storePaidDetails['FeesName'] = $feeRow->Sem_Year;
|
$storePaidDetails['FeesName'] = $feeRow->Sem_Year;
|
||||||
$storePaidDetails['CourseFees'] = $feeRow->CourseFees;
|
$storePaidDetails['CourseFees'] = $feeRow->CourseFees;
|
||||||
|
$storePaidDetails['ProgramType'] = $feeRow->ProgramType;
|
||||||
$storePaidDetails['SessionName'] = $feeRow->SessionName;
|
$storePaidDetails['SessionName'] = $feeRow->SessionName;
|
||||||
if($feeRow->ToSessionName=='' || $feeRow->ToSessionName==null){
|
if($feeRow->ToSessionName=='' || $feeRow->ToSessionName==null){
|
||||||
$storePaidDetails['ToSessionName'] = "Not Applicable";
|
$storePaidDetails['ToSessionName'] = "Not Applicable";
|
||||||
@ -171,6 +172,20 @@ class Studentview_model extends CI_Model
|
|||||||
$this->db->order_by('ID',"ASC");
|
$this->db->order_by('ID',"ASC");
|
||||||
$this->db->group_by('BillNO');
|
$this->db->group_by('BillNO');
|
||||||
$storePaidDetails['paidDetails']=$this->db->get(STUDENTS_FEES_PAID)->result();
|
$storePaidDetails['paidDetails']=$this->db->get(STUDENTS_FEES_PAID)->result();
|
||||||
|
// for installment details
|
||||||
|
$this->load->model('Fees_status_model');
|
||||||
|
|
||||||
|
$InstallemtResult = $this->Fees_status_model->getInstallmentDetails($feeRow->FeesID);
|
||||||
|
|
||||||
|
if($InstallemtResult != false){
|
||||||
|
$storePaidDetails['InstallmentDetails']=$InstallemtResult;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
|
||||||
|
$storePaidDetails['InstallmentDetails']="";
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
$mergeResult[]=$storePaidDetails;
|
$mergeResult[]=$storePaidDetails;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -209,6 +224,7 @@ class Studentview_model extends CI_Model
|
|||||||
foreach ($getFeeDetails->result() as $feeRow){
|
foreach ($getFeeDetails->result() as $feeRow){
|
||||||
$storePaidDetails['FeesID'] = $feeRow->FeesID;
|
$storePaidDetails['FeesID'] = $feeRow->FeesID;
|
||||||
$storePaidDetails['FeesName'] = $feeRow->FeesType;
|
$storePaidDetails['FeesName'] = $feeRow->FeesType;
|
||||||
|
$storePaidDetails['ProgramType'] = $feeRow->FeesType;
|
||||||
$storePaidDetails['CourseFees'] = $feeRow->CourseFees;
|
$storePaidDetails['CourseFees'] = $feeRow->CourseFees;
|
||||||
$storePaidDetails['SessionName'] = "Not Applicable";
|
$storePaidDetails['SessionName'] = "Not Applicable";
|
||||||
$storePaidDetails['ToSessionName'] = "Not Applicable";
|
$storePaidDetails['ToSessionName'] = "Not Applicable";
|
||||||
@ -236,6 +252,7 @@ class Studentview_model extends CI_Model
|
|||||||
$this->db->order_by('ID',"ASC");
|
$this->db->order_by('ID',"ASC");
|
||||||
$this->db->group_by('BillNO');
|
$this->db->group_by('BillNO');
|
||||||
$storePaidDetails['paidDetails']=$this->db->get(STUDENTS_FEES_PAID)->result();
|
$storePaidDetails['paidDetails']=$this->db->get(STUDENTS_FEES_PAID)->result();
|
||||||
|
$storePaidDetails['InstallmentDetails']="";
|
||||||
$mergeResult[]=$storePaidDetails;
|
$mergeResult[]=$storePaidDetails;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user