[move update stock to pos] set update_stock = 0 in old sales invoice where is_pos = 0
This commit is contained in:
parent
e961af40fc
commit
c7b8c4a414
@ -15,4 +15,9 @@ def execute():
|
||||
|
||||
webnotes.defaults.clear_cache("Control Panel")
|
||||
|
||||
webnotes.reload_doc("setup", "doctype", "global_defaults")
|
||||
webnotes.reload_doc("setup", "doctype", "global_defaults")
|
||||
|
||||
# previously, update_stock was valid only when is_pos was checked
|
||||
# henceforth it is valid, and hence the patch
|
||||
webnotes.conn.sql("""update `tabSales Invoice` set update_stock=0
|
||||
where ifnull(is_pos, 0)=0""")
|
Loading…
Reference in New Issue
Block a user