[sales invoice][fix] float precision issue

This commit is contained in:
Nabin Hait 2013-05-24 13:51:25 +05:30
parent 93ed5b9dae
commit 7cd49529f4

View File

@ -566,7 +566,7 @@ class DocType(SellingController):
def check_value(self, ref_dt, ref_dn, ref_item_dn, val, item_code):
ref_val = webnotes.conn.get_value(ref_dt + " Item", ref_item_dn, "export_rate")
if flt(ref_val) != flt(val):
if flt(ref_val, 2) != flt(val, 2):
msgprint(_("Rate is not matching with ") + ref_dt + ": " + ref_dn +
_(" for item: ") + item_code, raise_exception=True)