brotherton-erpnext/patches/january_2013/purchase_price_list.py
2013-01-17 20:20:56 +05:30

7 lines
170 B
Python

import webnotes
def execute():
# check for selling
webnotes.conn.sql("""update `tabItem Price` set selling=1
where ifnull(selling, 0)=0 and ifnull(buying, 0)=0""")