From c849f647f7823783b5c57ad40adf3eeba84b88a9 Mon Sep 17 00:00:00 2001 From: KanchanChauhan Date: Wed, 14 Jun 2017 15:37:47 +0530 Subject: [PATCH] Show Stock Level only if any value(actual, reserved, reserved for production or projected) exists (#9168) --- erpnext/stock/dashboard/item_dashboard.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/stock/dashboard/item_dashboard.py b/erpnext/stock/dashboard/item_dashboard.py index 28ea045d5d8..0d75a9a544f 100644 --- a/erpnext/stock/dashboard/item_dashboard.py +++ b/erpnext/stock/dashboard/item_dashboard.py @@ -31,6 +31,8 @@ def get_data(item_code=None, warehouse=None, item_group=None, tabBin b, tabItem i where b.item_code = i.name + and + (b.projected_qty != 0 or b.reserved_qty != 0 or b.reserved_qty_for_production != 0 or b.actual_qty != 0) {conditions} order by {sort_by} {sort_order}