From fc554ba5993d52b4b64f85a658c762505289ab7f Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Thu, 15 May 2025 10:30:46 +0530 Subject: [PATCH] fix: stop additional item (#47548) --- erpnext/manufacturing/doctype/work_order/work_order.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erpnext/manufacturing/doctype/work_order/work_order.py b/erpnext/manufacturing/doctype/work_order/work_order.py index 10254256026..1a268d5b365 100644 --- a/erpnext/manufacturing/doctype/work_order/work_order.py +++ b/erpnext/manufacturing/doctype/work_order/work_order.py @@ -1613,6 +1613,9 @@ class WorkOrder(Document): item.delete() def add_additional_items(self, stock_entry): + if frappe.db.get_single_value("Manufacturing Settings", "validate_components_quantities_per_bom"): + return + if stock_entry.purpose != "Material Transfer for Manufacture": return