mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 02:01:21 +00:00
[utility] repost stock
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user