Merge pull request #26351 from rohitwaghchaure/fixed-putaway-fixing-for-material-receipt-develop

fix: stock entry with putaway rule not working
This commit is contained in:
rohitwaghchaure 2021-07-12 12:49:25 +05:30 committed by GitHub
commit e2c97b1a2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
if not rules:
warehouse = source_warehouse or item.warehouse
warehouse = source_warehouse or item.get('warehouse')
if at_capacity:
# rules available, but no free space
items_not_accomodated.append([item_code, pending_qty])