Properly fix for item search bug (remove duplicated rows due to left

outer join)
This commit is contained in:
jekkos
2016-03-21 17:41:41 +01:00
parent b9c088314b
commit 07e372a787

View File

@@ -106,7 +106,7 @@ class Item extends CI_Model
}
// avoid duplicate entry with same name because of inventory reporting multiple changes on the same item in the same date range
//$this->db->group_by('items.name');
$this->db->group_by('items.item_id');
// order by name of item
$this->db->order_by('items.name', 'asc');