def execute(): webnotes.conn.auto_commit_on_many_writes = 1 from utilities.repost_stock import get_reserved_qty, update_bin for d in webnotes.conn.sql("select item_code, warehouse from tabBin"): update_bin(d[0], d[1], {"reserved_qty": get_reserved_qty(d[0], d[1])}) webnotes.conn.auto_commit_on_many_writes = 0
def execute(): import webnotes from utilities.repost_stock import get_ordered_qty, update_bin for d in webnotes.conn.sql("select item_code, warehouse from tabBin"): update_bin(d[0], d[1], { "ordered_qty": get_ordered_qty(d[0], d[1]) })
def execute(): webnotes.conn.auto_commit_on_many_writes = 1 from utilities.repost_stock import get_reserved_qty, update_bin for d in webnotes.conn.sql("select item_code, warehouse from tabBin"): update_bin(d[0], d[1], { "reserved_qty": get_reserved_qty(d[0], d[1]) }) webnotes.conn.auto_commit_on_many_writes = 0
def execute(): import webnotes from utilities.repost_stock import get_planned_qty, update_bin for d in webnotes.conn.sql("select item_code, warehouse from tabBin"): update_bin(d[0], d[1], {"planned_qty": get_planned_qty(d[0], d[1])})