mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
patch for updating temporary account type
This commit is contained in:
@@ -145,3 +145,4 @@ erpnext.patches.v5_0.execute_on_doctype_update
|
|||||||
erpnext.patches.v4_2.fix_recurring_orders
|
erpnext.patches.v4_2.fix_recurring_orders
|
||||||
erpnext.patches.v4_2.delete_gl_entries_for_cancelled_invoices
|
erpnext.patches.v4_2.delete_gl_entries_for_cancelled_invoices
|
||||||
erpnext.patches.v5_0.project_costing
|
erpnext.patches.v5_0.project_costing
|
||||||
|
erpnext.patches.v5_0.update_temporary_account
|
||||||
9
erpnext/patches/v5_0/update_temporary_account.py
Normal file
9
erpnext/patches/v5_0/update_temporary_account.py
Normal 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')""")
|
||||||
Reference in New Issue
Block a user