brotherton-erpnext/erpnext/patches/v5_0/update_temporary_account.py
2015-04-27 18:33:05 +05:30

9 lines
362 B
Python

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