[fix] Allow auto reorder based on reorder qty, even if reordeer level is zero
diff --git a/erpnext/stock/reorder_item.py b/erpnext/stock/reorder_item.py
index c637a12..ff341c3 100644
--- a/erpnext/stock/reorder_item.py
+++ b/erpnext/stock/reorder_item.py
@@ -48,7 +48,8 @@
# 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