Change the inventory reports to exclude non-stock items.

This commit is contained in:
Steve Ireland committed 2017-01-31 08:29:14 -05:00
1 parent d85aeaeaf8
commit cc584ca063
1 file changed
+2 -1
+2 -1
View File
@@ -28,7 +28,8 @@ class Inventory_low extends Report
$this->db->where('items.deleted', 0);
$this->db->where('stock_locations.deleted', 0);
$this->db->where('items.stock_type', 0);
$this->db->order_by('items.name');
$this->db->where('item_quantities.quantity <= items.reorder_level');
$this->db->order_by('items.name');
return $this->db->get()->result_array();
}