brotherton-erpnext/patches/january_2013/purchase_price_list.py

7 lines
170 B
Python
Raw Normal View History

2013-01-17 20:20:56 +05:30
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""")