validation message fix

This commit is contained in:
Nabin Hait 2015-07-08 14:39:03 +05:30
parent 4439d8264f
commit 5e3646ad6e

View File

@ -101,7 +101,7 @@ class TransactionBase(StatusUpdater):
ref_rate = frappe.db.get_value(ref_dt + " Item", d.get(ref_link_field), "rate")
if abs(flt(d.rate - ref_rate, d.precision("rate"))) >= .01:
frappe.throw(_("Row #{0}: Rate must be same with {1}: {2} ({3} / {4}) ")
frappe.throw(_("Row #{0}: Rate must be same as {1}: {2} ({3} / {4}) ")
.format(d.idx, ref_dt, d.get(ref_dn_field), d.rate, ref_rate))