commit | da9a3936e1153be8e844c684a602087ecf29f835 | [log] [tgz] |
---|---|---|
author | rohitwaghchaure <rohitw1991@gmail.com> | Tue Jan 28 14:34:27 2020 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Tue Jan 28 14:34:27 2020 +0530 |
tree | 82b9feaceffe3f8bdd525019381db32525baee83 | |
parent | 2bb3a62b1a3baf40624be14652b7687ea05909a6 [diff] |
fix: incorrect work order qty for sub assembly items (#20449)
diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.py b/erpnext/manufacturing/doctype/production_plan/production_plan.py index 8876253..92879ce 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.py +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.py
@@ -732,6 +732,6 @@ }) 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)