fix- Material Transferred for Manufacturing not Updating in Production Order Error
diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.py b/erpnext/stock/doctype/stock_entry/stock_entry.py
index b9dbc9a..3df4f94 100644
--- a/erpnext/stock/doctype/stock_entry/stock_entry.py
+++ b/erpnext/stock/doctype/stock_entry/stock_entry.py
@@ -474,9 +474,8 @@
pro_doc = frappe.get_doc("Production Order", self.production_order)
_validate_production_order(pro_doc)
pro_doc.run_method("update_status")
- if self.purpose in ["Manufacture", "Material Transfer for Manufacture"]:
- pro_doc.run_method("update_production_order_qty")
- self.update_planned_qty(pro_doc)
+ pro_doc.run_method("update_production_order_qty")
+ self.update_planned_qty(pro_doc)
def update_planned_qty(self, pro_doc):
from erpnext.stock.utils import update_bin