brotherton-erpnext/erpnext/patches/jan_mar_2012/mapper_fix.py

4 lines
242 B
Python
Raw Normal View History

2012-03-28 08:41:31 +00:00
def execute():
import webnotes
webnotes.conn.sql("delete from `tabTable Mapper Detail` where to_table = 'RV Detail' and parent = 'Delivery Note-Receivable Voucher' and validation_logic = 'amount > ifnull(billed_amt, 0) and docstatus = 1'")