From a6746407e5315fa77c445c34f1dbad5eed050c23 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 28 Mar 2018 11:16:00 +0530 Subject: [PATCH] Fixed waiting qty in item dashboard data --- erpnext/stock/dashboard/item_dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/dashboard/item_dashboard.js b/erpnext/stock/dashboard/item_dashboard.js index dff65afca3..edd594afb8 100644 --- a/erpnext/stock/dashboard/item_dashboard.js +++ b/erpnext/stock/dashboard/item_dashboard.js @@ -88,7 +88,7 @@ erpnext.stock.ItemDashboard = Class.extend({ if(!data) data = []; data.forEach(function(d) { - d.actual_or_pending = d.projected_qty + d.reserved_qty + d.reserved_qty_for_production; + d.actual_or_pending = d.projected_qty + d.reserved_qty + d.reserved_qty_for_production + d.reserved_qty_for_sub_contract; d.pending_qty = 0; d.total_reserved = d.reserved_qty + d.reserved_qty_for_production + d.reserved_qty_for_sub_contract; if(d.actual_or_pending > d.actual_qty) {