patch for updating temporary account type

This commit is contained in:
Nabin Hait 2015-04-27 18:33:05 +05:30
parent 5616ff417c
commit 3be69d4d81
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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')""")