From e3a7c98df6286d05bb561034600bf0e053a16144 Mon Sep 17 00:00:00 2001 From: Sanjeev Date: Fri, 9 Apr 2021 16:04:57 +0530 Subject: [PATCH] issues fixes : ps --- Apollo/api/application/models/Studentview_model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Apollo/api/application/models/Studentview_model.php b/Apollo/api/application/models/Studentview_model.php index 92d9d73c..d42b45ab 100755 --- a/Apollo/api/application/models/Studentview_model.php +++ b/Apollo/api/application/models/Studentview_model.php @@ -67,12 +67,12 @@ class Studentview_model extends CI_Model $this->db->from( LOGIN . ' as LO'); $this->db->join( STUDENTS . ' as ST', 'LO.StaffID = ST.StudentID'); $this->db->join( STUDENTCOURSE . ' as STC', 'STC.StudentID = ST.StudentID'); - $this->db->join(STUDENTS_FEES_PAID . ' as SFP','SFP.StudentID = ST.StudentID '); - - $this->db->join(STUDENTS_FEES_STATUS . ' as SFS','SFS.FeesID = SFP.FeesId and SFS.StudentID = SFP.StudentID'); + $this->db->join(STUDENTS_FEES_PAID . ' as SFP','SFP.StudentID = ST.StudentID ','left'); + $this->db->join(STUDENTS_FEES_STATUS . ' as SFS','SFS.FeesID = SFP.FeesId and SFS.StudentID = SFP.StudentID','left'); $this->db->where('ST.MobileNumber', $requestedBy); $this->db->where('STC.BranchID', $requestedBranch); $studentDetails = $this->db->get()->first_row(); + // print_r($studentDetails); // print_r($this->db->last_query());die(); if($studentDetails){ $result['studentStatus'] = true;