fixes in gle_floating_point_issue patch

This commit is contained in:
Nabin Hait
2013-02-19 15:13:23 +05:30
parent fe787259b6
commit 66ea0861ff
3 changed files with 24 additions and 14 deletions

View File

@@ -13,7 +13,7 @@ def execute():
diff = round((flt(r.grand_total) - flt(gle[0]['debit'])), 2)
if abs(diff) == 0.01:
# print r.name, r.grand_total, gle[0]['debit']
# print r.name, r.grand_total, gle[0]['debit'], diff
webnotes.conn.sql("""update `tabGL Entry` set debit = debit + %s
where name = %s""", (diff, gle[0]['name']))