find wrong vouchers

This commit is contained in:
Nabin Hait 2012-10-03 14:45:45 +05:30
parent 703d289f29
commit f3a7f347c2

View File

@ -9,7 +9,7 @@ def execute():
""") """)
for d in vouchers: for d in vouchers:
total_tax = webnotes.conn.sql("""select tax_amount from `tab%s` where name = %s""" % total_tax = webnotes.conn.sql("""select total_tax from `tab%s` where name = %s""" %
(d[1], '%s'), d[0]) (d[1], '%s'), d[0])
if flt(total_tax[0][0]) != flt(d[3]): if flt(total_tax[0][0]) != flt(d[3]):
print d print d