fix: stock entry with putaway rule not working
This commit is contained in:
parent
2fbe41de36
commit
dd1b2995a8
@ -97,7 +97,7 @@ def apply_putaway_rule(doctype, items, company, sync=None, purpose=None):
|
|||||||
at_capacity, rules = get_ordered_putaway_rules(item_code, company, source_warehouse=source_warehouse)
|
at_capacity, rules = get_ordered_putaway_rules(item_code, company, source_warehouse=source_warehouse)
|
||||||
|
|
||||||
if not rules:
|
if not rules:
|
||||||
warehouse = source_warehouse or item.warehouse
|
warehouse = source_warehouse or item.get('warehouse')
|
||||||
if at_capacity:
|
if at_capacity:
|
||||||
# rules available, but no free space
|
# rules available, but no free space
|
||||||
items_not_accomodated.append([item_code, pending_qty])
|
items_not_accomodated.append([item_code, pending_qty])
|
||||||
|
Loading…
Reference in New Issue
Block a user