mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-20 21:49:18 +00:00
[fix] [minor] [patch] commit after update qty
This commit is contained in:
@@ -6,6 +6,8 @@ def execute():
|
|||||||
import webnotes
|
import webnotes
|
||||||
webnotes.reload_doc("buying", "doctype", "purchase_order_item")
|
webnotes.reload_doc("buying", "doctype", "purchase_order_item")
|
||||||
webnotes.reload_doc("stock", "doctype", "purchase_receipt_item")
|
webnotes.reload_doc("stock", "doctype", "purchase_receipt_item")
|
||||||
|
|
||||||
for pi in webnotes.conn.sql("""select name from `tabPurchase Invoice` where docstatus = 1"""):
|
for pi in webnotes.conn.sql("""select name from `tabPurchase Invoice` where docstatus = 1"""):
|
||||||
webnotes.get_obj("Purchase Invoice", pi[0],
|
webnotes.get_obj("Purchase Invoice", pi[0],
|
||||||
with_children=1).update_qty(change_modified=False)
|
with_children=1).update_qty(change_modified=False)
|
||||||
|
webnotes.conn.commit()
|
||||||
Reference in New Issue
Block a user