mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-07-20 03:42:48 -04:00
#132 Fix date range missing end date items
This commit is contained in:
@@ -53,7 +53,7 @@ class Item extends CI_Model
|
||||
|
||||
if (empty($search))
|
||||
{
|
||||
$this->db->where('trans_date BETWEEN '. $this->db->escape($filters['start_date']). ' AND '. $this->db->escape($filters['end_date']));
|
||||
$this->db->where('DATE_FORMAT(trans_date, "%Y-%m-%d") BETWEEN ' . $this->db->escape($filters['start_date']) . ' AND ' . $this->db->escape($filters['end_date']));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -122,7 +122,7 @@ class Item extends CI_Model
|
||||
|
||||
if (empty($search))
|
||||
{
|
||||
$this->db->where('trans_date BETWEEN '. $this->db->escape($filters['start_date']). ' AND '. $this->db->escape($filters['end_date']));
|
||||
$this->db->where('DATE_FORMAT(trans_date, "%Y-%m-%d") BETWEEN ' . $this->db->escape($filters['start_date']) . ' AND ' . $this->db->escape($filters['end_date']));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user