mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 00:44:45 +00:00
[fix] [setup_wizard] fiscal year fix for setup wizard
This commit is contained in:
11
patches/1311/p04_update_year_end_date_of_fiscal_year.py
Normal file
11
patches/1311/p04_update_year_end_date_of_fiscal_year.py
Normal file
@@ -0,0 +1,11 @@
|
||||
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
||||
# License: GNU General Public License v3. See license.txt
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import webnotes
|
||||
|
||||
def execute():
|
||||
webnotes.reload_doc("accounts", "doctype", "fiscal_year")
|
||||
|
||||
webnotes.conn.sql("""update `tabFiscal Year` set year_end_date =
|
||||
subdate(adddate(year_start_date, interval 1 year), interval 1 day)""")
|
||||
@@ -250,4 +250,5 @@ patch_list = [
|
||||
"execute:webnotes.reload_doc('website', 'doctype', 'website_sitemap') #2013-11-20",
|
||||
"execute:webnotes.bean('Style Settings').save() #2013-11-20",
|
||||
"execute:webnotes.get_module('website.doctype.website_sitemap_config.website_sitemap_config').rebuild_website_sitemap_config()",
|
||||
"patches.1311.p04_update_year_end_date_of_fiscal_year",
|
||||
]
|
||||
Reference in New Issue
Block a user