Files
erpnext/patches/october_2012/find_wrong_voucher.py
2012-10-03 12:08:01 +05:30

9 lines
282 B
Python

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