Merge pull request #2567 from nabinhait/fix1

valuation rate mandatory if item is transacting for the first time
This commit is contained in:
Nabin Hait 2015-01-10 10:31:34 +05:30
commit f1d06b02e7

View File

@ -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)