brotherton-erpnext/patches/january_2013/purchase_price_list.py

9 lines
227 B
Python
Raw Normal View History

2013-01-17 14:50:56 +00:00
import webnotes
def execute():
2013-01-18 07:37:02 +00:00
webnotes.reload_doc("stock", "doctype", "item_price")
2013-01-17 14:50:56 +00:00
# check for selling
webnotes.conn.sql("""update `tabItem Price` set selling=1
where ifnull(selling, 0)=0 and ifnull(buying, 0)=0""")