From ff3106c7d47d9bbe9c6e49a54b481dd81734a110 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 2 Apr 2013 17:44:50 +0530 Subject: [PATCH] [stock reco] improved validation message --- stock/doctype/stock_reconciliation/stock_reconciliation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stock/doctype/stock_reconciliation/stock_reconciliation.py b/stock/doctype/stock_reconciliation/stock_reconciliation.py index 56041797d5..f32a78bd9e 100644 --- a/stock/doctype/stock_reconciliation/stock_reconciliation.py +++ b/stock/doctype/stock_reconciliation/stock_reconciliation.py @@ -145,11 +145,12 @@ class DocType(StockController): "posting_date": self.doc.posting_date, "posting_time": self.doc.posting_time }) - + # check valuation rate mandatory if row.qty != "" and not row.valuation_rate and \ flt(previous_sle.get("qty_after_transaction")) <= 0: webnotes.msgprint(_("As existing qty for item: ") + row.item_code + + _(" at warehouse: ") + row.warehouse + _(" is less than equals to zero in the system, \ valuation rate is mandatory for this item"), raise_exception=1)