From 3fd3b8e7fe6aed3e854f48f15a41ec9c692d0bb2 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 3 Oct 2012 12:08:01 +0530 Subject: [PATCH] Find wrong vouchers (temp) --- patches/october_2012/find_wrong_voucher.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 patches/october_2012/find_wrong_voucher.py diff --git a/patches/october_2012/find_wrong_voucher.py b/patches/october_2012/find_wrong_voucher.py new file mode 100644 index 0000000000..f4436224f9 --- /dev/null +++ b/patches/october_2012/find_wrong_voucher.py @@ -0,0 +1,9 @@ +def execute(): + import webnotes + vouchers = webnotes.conn.sql(""" + select parent from `tabPurchase Taxes and Charges` + where modified >= '2012-10-02' + and (category = 'Total' or category = 'Valuation') + and parenttype != 'Purchase Taxes and Charges Master' + """) + print vouchers \ No newline at end of file