From 1bb5d0119227e69d688cc7b74dee99246f6ed760 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Fri, 1 Nov 2019 14:24:21 +0530 Subject: [PATCH] fix: Wrong warehouse fetched in production plan --- .../manufacturing/doctype/production_plan/production_plan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.py b/erpnext/manufacturing/doctype/production_plan/production_plan.py index 4dc98e7ade..10d9a474e0 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.py +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.py @@ -622,7 +622,7 @@ def get_items_for_material_requests(doc, ignore_existing_ordered_qty=None): for data in po_items: planned_qty = data.get('required_qty') or data.get('planned_qty') ignore_existing_ordered_qty = data.get('ignore_existing_ordered_qty') or ignore_existing_ordered_qty - warehouse = data.get("warehouse") or warehouse + warehouse = warehouse or data.get("warehouse") item_details = {} if data.get("bom") or data.get("bom_no"):