Browse Source

Fixed waiting qty in item dashboard data

develop
Nabin Hait 7 years ago
parent
commit
a6746407e5
  1. 2
      erpnext/stock/dashboard/item_dashboard.js

2
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) {

Loading…
Cancel
Save