[fix] Allow auto reorder based on reorder qty, even if reordeer level is zero
This commit is contained in:
parent
7736e092e7
commit
38be62c7e3
@ -48,7 +48,8 @@ def _reorder_item():
|
||||
# projected_qty will be 0 if Bin does not exist
|
||||
projected_qty = flt(item_warehouse_projected_qty.get(item_code, {}).get(warehouse))
|
||||
|
||||
if (reorder_level or reorder_qty) and projected_qty < reorder_level:
|
||||
if ((reorder_level and projected_qty <= reorder_level)
|
||||
or (not reorder_level and reorder_qty and projected_qty < 0)):
|
||||
deficiency = reorder_level - projected_qty
|
||||
if deficiency > reorder_qty:
|
||||
reorder_qty = deficiency
|
||||
|
Loading…
x
Reference in New Issue
Block a user