diff --git a/erpnext/patches.txt b/erpnext/patches.txt index 042bbde2913..4acb6dc6e23 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -145,3 +145,4 @@ erpnext.patches.v5_0.execute_on_doctype_update erpnext.patches.v4_2.fix_recurring_orders erpnext.patches.v4_2.delete_gl_entries_for_cancelled_invoices erpnext.patches.v5_0.project_costing +erpnext.patches.v5_0.update_temporary_account \ No newline at end of file diff --git a/erpnext/patches/v5_0/update_temporary_account.py b/erpnext/patches/v5_0/update_temporary_account.py new file mode 100644 index 00000000000..078c8714fff --- /dev/null +++ b/erpnext/patches/v5_0/update_temporary_account.py @@ -0,0 +1,9 @@ +# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors +# License: GNU General Public License v3. See license.txt + +from __future__ import unicode_literals +import frappe + +def execute(): + frappe.db.sql("""Update `tabAccount` set account_type = 'Temporary' + where account_name in ('Temporary Assets', 'Temporary Liabilities', 'Temporary Opening')""") \ No newline at end of file