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