fix: make reorder_level not required (#35831)
* fix: make reorder_level not required * fix: allow material request to be made if projected_qty <= reorder_level
This commit is contained in:
parent
802c89ffb3
commit
f9ed8c10ab
@ -81,7 +81,7 @@
|
||||
"print_hide_if_no_value": 0,
|
||||
"read_only": 0,
|
||||
"report_hide": 0,
|
||||
"reqd": 1,
|
||||
"reqd": 0,
|
||||
"search_index": 0,
|
||||
"set_only_once": 0,
|
||||
"unique": 0
|
||||
@ -147,7 +147,7 @@
|
||||
"issingle": 0,
|
||||
"istable": 1,
|
||||
"max_attachments": 0,
|
||||
"modified": "2016-07-28 19:15:38.270046",
|
||||
"modified": "2023-06-21 15:13:38.270046",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Stock",
|
||||
"name": "Item Reorder",
|
||||
@ -158,4 +158,4 @@
|
||||
"read_only_onload": 0,
|
||||
"sort_order": "ASC",
|
||||
"track_seen": 0
|
||||
}
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ def _reorder_item():
|
||||
else:
|
||||
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 or reorder_qty) and projected_qty <= reorder_level:
|
||||
deficiency = reorder_level - projected_qty
|
||||
if deficiency > reorder_qty:
|
||||
reorder_qty = deficiency
|
||||
|
Loading…
x
Reference in New Issue
Block a user