From 9113f259bb74ff74dcf70a62793f17fe94c5c8d1 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 7 Aug 2013 15:19:32 +0530 Subject: [PATCH] [fix] [minor] [patch] commit after update qty --- patches/may_2013/p06_update_billed_amt_po_pr.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 871a7deedcb..3f66c03b8b6 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 @@ def execute(): 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