diff --git a/erpnext/public/js/stock_analytics.js b/erpnext/public/js/stock_analytics.js index a86d7ade95..091836f95e 100644 --- a/erpnext/public/js/stock_analytics.js +++ b/erpnext/public/js/stock_analytics.js @@ -131,6 +131,7 @@ erpnext.StockAnalytics = erpnext.StockGridReport.extend({ if(me.is_default("warehouse") ? true : me.warehouse == sl.warehouse) { var item = me.item_by_name[sl.item_code]; + if(item.closing_qty_value==undefined) item.closing_qty_value = 0; if(me.value_or_qty!="Quantity") { var wh = me.get_item_warehouse(sl.warehouse, sl.item_code);