[utility] repost stock

This commit is contained in:
Nabin Hait 2013-10-23 12:02:08 +05:30
parent 4ed7f68344
commit c2caae53dd

View File

@ -16,7 +16,7 @@ def repost():
for d in webnotes.conn.sql("""select distinct item_code, warehouse from
(select item_code, warehouse from tabBin
union
select item_code, warehouse from `tabStock Ledger Entry`)"""):
select item_code, warehouse from `tabStock Ledger Entry`) a"""):
repost_stock(d[0], d[1])
webnotes.conn.auto_commit_on_many_writes = 0