diff --git a/application/models/reports/Inventory_low.php b/application/models/reports/Inventory_low.php index e2b23f0f6..11584dcc6 100644 --- a/application/models/reports/Inventory_low.php +++ b/application/models/reports/Inventory_low.php @@ -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(); }