Merge branch 'master' of github.com:webnotes/erpnext
diff --git a/patches/october_2012/find_wrong_voucher.py b/patches/october_2012/find_wrong_voucher.py
new file mode 100644
index 0000000..f443622
--- /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