blob: 96f56fb88ace79f4351ed6b40e1ee7ebd8a8e48c [file] [log] [blame]
Nabin Hait44a40b82014-01-27 15:02:30 +05301# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
2# License: GNU General Public License v3. See license.txt
3
4import webnotes
5
6def execute():
7 from utilities.repost_stock import repost_stock
8 for d in webnotes.conn.sql("""select distinct production_item, fg_warehouse
9 from `tabProduction Order` where docstatus>0""", as_dict=1):
10 repost_stock(d.production_item, d.fg_warehouse)