mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 03:39:11 +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)""")
|
||||
Reference in New Issue
Block a user