[utility] repost stock
This commit is contained in:
parent
4ed7f68344
commit
c2caae53dd
@ -16,7 +16,7 @@ def repost():
|
|||||||
for d in webnotes.conn.sql("""select distinct item_code, warehouse from
|
for d in webnotes.conn.sql("""select distinct item_code, warehouse from
|
||||||
(select item_code, warehouse from tabBin
|
(select item_code, warehouse from tabBin
|
||||||
union
|
union
|
||||||
select item_code, warehouse from `tabStock Ledger Entry`)"""):
|
select item_code, warehouse from `tabStock Ledger Entry`) a"""):
|
||||||
repost_stock(d[0], d[1])
|
repost_stock(d[0], d[1])
|
||||||
|
|
||||||
webnotes.conn.auto_commit_on_many_writes = 0
|
webnotes.conn.auto_commit_on_many_writes = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user