From 675276b802e822ffa6df2fd325dced4144dbf47a Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Sat, 10 Jan 2015 10:27:02 +0530 Subject: [PATCH] valuation rate mandatory if item is transacting for the first time --- .../doctype/stock_reconciliation/stock_reconciliation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py b/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py index 530ab9af80..9c85277a32 100644 --- a/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py +++ b/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py @@ -153,8 +153,8 @@ class StockReconciliation(StockController): if row.valuation_rate in ("", None): row.valuation_rate = previous_sle.get("valuation_rate") - # if row.qty and not row.valuation_rate: - # frappe.throw(_("Valuation Rate required for Item {0}").format(row.item_code)) + if row.qty and not row.valuation_rate: + frappe.throw(_("Valuation Rate required for Item {0}").format(row.item_code)) self.insert_entries(row)