From e6b5359708cbe11ae3a447f657e916a67b9c93d3 Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Thu, 23 Aug 2018 10:40:45 +0530 Subject: [PATCH] report date --- Apollo/api/application/models/Reports_model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);