From c2caae53dd93219b7cafb2a75dbf9b37b2f508e2 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 23 Oct 2013 12:02:08 +0530 Subject: [PATCH] [utility] repost stock --- utilities/repost_stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/repost_stock.py b/utilities/repost_stock.py index e2ecdeeb9b..136a7620b5 100644 --- a/utilities/repost_stock.py +++ b/utilities/repost_stock.py @@ -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