From da9a3936e1153be8e844c684a602087ecf29f835 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Tue, 28 Jan 2020 14:34:27 +0530 Subject: [PATCH] fix: incorrect work order qty for sub assembly items (#20449) --- .../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 8876253e8e6..92879ceadac 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.py +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.py @@ -732,6 +732,6 @@ def get_sub_assembly_items(bom_no, bom_data): }) bom_item = bom_data.get(key) - bom_item["stock_qty"] += d.stock_qty + bom_item["stock_qty"] += d.stock_qty / d.parent_bom_qty get_sub_assembly_items(bom_item.get("bom_no"), bom_data)