brotherton-erpnext/erpnext/patches/v5_0/update_temporary_account.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
362 B
Python
Raw Normal View History

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