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
|
2013-06-12 12:10:36 +00:00
|
|
|
webnotes.conn.sql("""update `tabItem Price` set buying_or_selling = "Selling"
|
|
|
|
where ifnull(buying_or_selling, '')=''""")
|
2013-01-17 14:50:56 +00:00
|
|
|
|