[fix] Null issue fixed in stock analytics report

This commit is contained in:
Nabin Hait 2014-10-31 14:46:07 +05:30
parent c59cd46391
commit 28913b97b0

View File

@ -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);