[utility] repost stock

This commit is contained in:
Nabin Hait 2013-10-23 12:14:32 +05:30
parent c2caae53dd
commit 5048c98911

View File

@ -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("""