Error fixed in patch

This commit is contained in:
Nabin Hait 2011-12-22 12:58:34 +05:30
parent 6998261a7e
commit 7e812bbee0

View File

@ -4,5 +4,5 @@ def execute():
reload_doc('setup', 'doctype', 'manage_account')
reload_doc('stock', 'doctype', 'item')
webnotes.conn.sql("delete from `tabDocField` where fieldname='minimum_inventory_level' and parent='item'")
webnotes.conn.sql("update `tabItem` set re_order_level = minimum_inventory_level wehre ifnull(re_order_level,0) = 0 ")
webnotes.conn.sql("update `tabItem` set re_order_level = minimum_inventory_level where ifnull(re_order_level,0) = 0 ")