mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
fix: stop additional item (#47548)
This commit is contained in:
@@ -1613,6 +1613,9 @@ class WorkOrder(Document):
|
|||||||
item.delete()
|
item.delete()
|
||||||
|
|
||||||
def add_additional_items(self, stock_entry):
|
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":
|
if stock_entry.purpose != "Material Transfer for Manufacture":
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user