From cf96cc26a0ec3fae611203b4bf482a94c5e5af60 Mon Sep 17 00:00:00 2001 From: Neil Trini Lasrado Date: Mon, 13 Apr 2015 13:04:18 +0530 Subject: [PATCH] Fixes for test cases --- erpnext/stock/doctype/stock_entry/stock_entry.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.py b/erpnext/stock/doctype/stock_entry/stock_entry.py index 3df4f94ee24..0196c31bf1b 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py @@ -475,7 +475,8 @@ class StockEntry(StockController): _validate_production_order(pro_doc) pro_doc.run_method("update_status") pro_doc.run_method("update_production_order_qty") - self.update_planned_qty(pro_doc) + if self.purpose == "Manufacture": + self.update_planned_qty(pro_doc) def update_planned_qty(self, pro_doc): from erpnext.stock.utils import update_bin