[fix] [minor] [patch] commit after update qty
diff --git a/patches/may_2013/p06_update_billed_amt_po_pr.py b/patches/may_2013/p06_update_billed_amt_po_pr.py
index 871a7de..3f66c03 100644
--- a/patches/may_2013/p06_update_billed_amt_po_pr.py
+++ b/patches/may_2013/p06_update_billed_amt_po_pr.py
@@ -6,6 +6,8 @@
import webnotes
webnotes.reload_doc("buying", "doctype", "purchase_order_item")
webnotes.reload_doc("stock", "doctype", "purchase_receipt_item")
+
for pi in webnotes.conn.sql("""select name from `tabPurchase Invoice` where docstatus = 1"""):
webnotes.get_obj("Purchase Invoice", pi[0],
- with_children=1).update_qty(change_modified=False)
\ No newline at end of file
+ with_children=1).update_qty(change_modified=False)
+ webnotes.conn.commit()
\ No newline at end of file