diff --git a/Apollo/api/application/models/Reports_model.php b/Apollo/api/application/models/Reports_model.php index 4a60560d..60b15d3e 100755 --- a/Apollo/api/application/models/Reports_model.php +++ b/Apollo/api/application/models/Reports_model.php @@ -889,7 +889,7 @@ $query = $this->db->query($subQuery,array(NEWREGISTRATION_CONST,'%d-%m-%Y',$from $this->db->where('T_Students_Fees_PaidDetails.CreatedOn>=',date('Y-m-d', strtotime($start_date))); - $this->db->where('T_Students_Fees_PaidDetails.CreatedOn>=',date('Y-m-d', strtotime($end_date))); + $this->db->where('T_Students_Fees_PaidDetails.CreatedOn<=',date('Y-m-d', strtotime($end_date))); // $this->db->where(' BillDate <= str_to_date("'.$end_date.'",%d-%m-%Y)'); @@ -905,7 +905,7 @@ $query = $this->db->query($subQuery,array(NEWREGISTRATION_CONST,'%d-%m-%Y',$from $feeDetails = $this->db->get()->result(); -// print_r( $this->db->last_query()); + // print_r( $this->db->last_query()); // die(); // print_r($feeDetails);