[stock reco] improved validation message
This commit is contained in:
parent
996e469562
commit
ff3106c7d4
@ -150,6 +150,7 @@ class DocType(StockController):
|
|||||||
if row.qty != "" and not row.valuation_rate and \
|
if row.qty != "" and not row.valuation_rate and \
|
||||||
flt(previous_sle.get("qty_after_transaction")) <= 0:
|
flt(previous_sle.get("qty_after_transaction")) <= 0:
|
||||||
webnotes.msgprint(_("As existing qty for item: ") + row.item_code +
|
webnotes.msgprint(_("As existing qty for item: ") + row.item_code +
|
||||||
|
_(" at warehouse: ") + row.warehouse +
|
||||||
_(" is less than equals to zero in the system, \
|
_(" is less than equals to zero in the system, \
|
||||||
valuation rate is mandatory for this item"), raise_exception=1)
|
valuation rate is mandatory for this item"), raise_exception=1)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user