From 84da00da2fd5d84c0c5843dbe4b66180c17df867 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Wed, 20 Dec 2017 12:06:09 +0530 Subject: [PATCH] Allow to add items in manufacturing process which are not part of bom items (#12110) --- erpnext/stock/doctype/stock_entry/stock_entry.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.py b/erpnext/stock/doctype/stock_entry/stock_entry.py index 4d79e13d74..18f1178489 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py @@ -49,6 +49,9 @@ class StockEntry(StockController): self.validate_with_material_request() self.validate_batch() + if not self.from_bom: + self.fg_completed_qty = 0.0 + if self._action == 'submit': self.make_batches('t_warehouse') else: