brotherton-erpnext/patches/january_2013/purchase_price_list.py

9 lines
235 B
Python
Raw Normal View History

2013-01-17 20:20:56 +05:30
import webnotes
def execute():
2013-01-18 13:07:02 +05:30
webnotes.reload_doc("stock", "doctype", "item_price")
2013-01-17 20:20:56 +05:30
# check for selling
webnotes.conn.sql("""update `tabItem Price` set buying_or_selling = "Selling"
where ifnull(buying_or_selling, '')=''""")
2013-01-17 20:20:56 +05:30