From 5048c98911b430af899a423a73f74214674235b7 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 23 Oct 2013 12:14:32 +0530 Subject: [PATCH] [utility] repost stock --- utilities/repost_stock.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utilities/repost_stock.py b/utilities/repost_stock.py index 136a7620b5..536df81e8b 100644 --- a/utilities/repost_stock.py +++ b/utilities/repost_stock.py @@ -34,7 +34,10 @@ def repost_stock(item_code, warehouse): def repost_actual_qty(item_code, warehouse): from stock.stock_ledger import update_entries_after - update_entries_after({ "item_code": item_code, "warehouse": warehouse }) + try: + update_entries_after({ "item_code": item_code, "warehouse": warehouse }) + except: + pass def get_reserved_qty(item_code, warehouse): reserved_qty = webnotes.conn.sql("""