From d3d94d1efe7b64f33a15a4c0d3d6074966becb32 Mon Sep 17 00:00:00 2001 From: Neil Trini Lasrado Date: Mon, 6 Apr 2015 12:53:37 +0530 Subject: [PATCH] fix- Material Transferred for Manufacturing not Updating in Production Order Error --- erpnext/stock/doctype/stock_entry/stock_entry.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.py b/erpnext/stock/doctype/stock_entry/stock_entry.py index b9dbc9aa08..3df4f94ee2 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py @@ -474,9 +474,8 @@ class StockEntry(StockController): 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