[fix] minor fix in stock projected qty
This commit is contained in:
parent
d8b15ebaf7
commit
d35d74346d
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user