From ea69ff207a0a7a6e7bd0a36ae9da7451bf0abe57 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 28 Sep 2012 15:27:23 +0530 Subject: [PATCH] repost_acc_bal patch andpur taxes and charges --- .../purchase_taxes_and_charges.txt | 2 +- erpnext/patches/before_jan_2012/repost_account_bal.py | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/erpnext/accounts/doctype/purchase_taxes_and_charges/purchase_taxes_and_charges.txt b/erpnext/accounts/doctype/purchase_taxes_and_charges/purchase_taxes_and_charges.txt index 4673189ad3e..3198b256326 100644 --- a/erpnext/accounts/doctype/purchase_taxes_and_charges/purchase_taxes_and_charges.txt +++ b/erpnext/accounts/doctype/purchase_taxes_and_charges/purchase_taxes_and_charges.txt @@ -5,7 +5,7 @@ { u'creation': '2012-09-18 11:20:24', u'docstatus': 0, - u'modified': '2012-09-28 12:19:57', + u'modified': '2012-09-28 12:27:43', u'modified_by': u'Administrator', u'owner': u'wasim@webnotestech.com' }, diff --git a/erpnext/patches/before_jan_2012/repost_account_bal.py b/erpnext/patches/before_jan_2012/repost_account_bal.py index a87bfe0cfc4..b1d68c7d0fc 100644 --- a/erpnext/patches/before_jan_2012/repost_account_bal.py +++ b/erpnext/patches/before_jan_2012/repost_account_bal.py @@ -30,10 +30,7 @@ def execute(): fy_obj = get_obj('Fiscal Year', f[0]) fy_obj.doc.past_year = prev_fy fy_obj.doc.company = c[0] - fy_obj.doc.save() - - fy_obj = get_obj('Fiscal Year', f[0]) fy_obj.repost() prev_fy = f[0] - sql("commit") - sql("start transaction") + webnotes.conn.commit() + webnotes.conn.begin() \ No newline at end of file