From f3a7f347c2998e3692911c1938d9e3bc8e7a471d Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 3 Oct 2012 14:45:45 +0530 Subject: [PATCH] find wrong vouchers --- patches/october_2012/find_wrong_voucher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/october_2012/find_wrong_voucher.py b/patches/october_2012/find_wrong_voucher.py index ed9ce9c644..d2374adb21 100644 --- a/patches/october_2012/find_wrong_voucher.py +++ b/patches/october_2012/find_wrong_voucher.py @@ -9,7 +9,7 @@ def execute(): """) 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]) if flt(total_tax[0][0]) != flt(d[3]): print d \ No newline at end of file