4 lines
246 B
Python
Raw Normal View History

2012-03-28 14:11:31 +05:30
def execute():
import webnotes
2012-03-30 12:29:06 +05:30
webnotes.conn.sql("delete from `tabTable Mapper Detail` where to_table = 'Sales Invoice Item' and parent = 'Delivery Note-Sales Invoice' and validation_logic = 'amount > ifnull(billed_amt, 0) and docstatus = 1'")