From 4722a5600fffff577ab939ef1e8c8da0671c840e Mon Sep 17 00:00:00 2001 From: jekkos Date: Wed, 29 Jan 2020 22:46:48 +0100 Subject: [PATCH] Do not show deleted items in low inventory report (#2702) --- application/models/reports/Inventory_low.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/models/reports/Inventory_low.php b/application/models/reports/Inventory_low.php index 35842f700..3653b5b12 100644 --- a/application/models/reports/Inventory_low.php +++ b/application/models/reports/Inventory_low.php @@ -27,6 +27,7 @@ class Inventory_low extends Report WHERE items.deleted = 0 AND items.stock_type = 0 AND item_quantities.quantity <= items.reorder_level + AND stock_locations.deleted = 0 ORDER BY items.name"); return $query->result_array();