diff --git a/erpnext/stock/report/stock_projected_qty/stock_projected_qty.py b/erpnext/stock/report/stock_projected_qty/stock_projected_qty.py index 7d3a2ee80a..aef6c99121 100644 --- a/erpnext/stock/report/stock_projected_qty/stock_projected_qty.py +++ b/erpnext/stock/report/stock_projected_qty/stock_projected_qty.py @@ -50,10 +50,12 @@ def get_data(filters): if d.warehouse == bin.warehouse: re_order_level = d.warehouse_reorder_level re_order_qty = d.warehouse_reorder_qty + + shortage_qty = re_order_level - flt(bin.projected_qty) if re_order_level else 0 - data.append([item.name, item.item_name, item.description, item.item_group, item.brand, bin.warehouse, - item.stock_uom, bin.actual_qty, bin.planned_qty, bin.indented_qty, bin.ordered_qty, bin.reserved_qty, - bin.projected_qty, re_order_level, re_order_qty, re_order_level - flt(bin.projected_qty)]) + data.append([item.name, item.item_name, item.description, item.item_group, item.brand, bin.warehouse, + item.stock_uom, bin.actual_qty, bin.planned_qty, bin.indented_qty, bin.ordered_qty, + bin.reserved_qty, bin.projected_qty, re_order_level, re_order_qty, shortage_qty]) return data