Merge pull request #20990 from rohitwaghchaure/fixed_shortage_qty_in_stock_projected_qty_report_develop
fix: shortage qty in stock projected qty report
This commit is contained in:
commit
6b36fae531
@ -44,7 +44,9 @@ def execute(filters=None):
|
||||
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 or re_order_qty) else 0
|
||||
shortage_qty = 0
|
||||
if (re_order_level or re_order_qty) and re_order_level > bin.projected_qty:
|
||||
shortage_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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user