2013-11-20 07:29:58 +00:00
|
|
|
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
2013-08-05 09:29:54 +00:00
|
|
|
# License: GNU General Public License v3. See license.txt
|
2013-06-03 11:15:38 +00:00
|
|
|
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
def execute():
|
|
|
|
import webnotes
|
|
|
|
webnotes.reload_doc("buying", "doctype", "purchase_order_item")
|
|
|
|
webnotes.reload_doc("stock", "doctype", "purchase_receipt_item")
|
2013-08-07 09:49:32 +00:00
|
|
|
|
2013-06-03 11:15:38 +00:00
|
|
|
for pi in webnotes.conn.sql("""select name from `tabPurchase Invoice` where docstatus = 1"""):
|
|
|
|
webnotes.get_obj("Purchase Invoice", pi[0],
|
2013-08-07 09:49:32 +00:00
|
|
|
with_children=1).update_qty(change_modified=False)
|
|
|
|
webnotes.conn.commit()
|