mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-22 18:59:58 +00:00
feat: support custom financial statements (#49098)
Co-authored-by: Abdeali Chharchhoda <abdealiking786@gmail.com>
This commit is contained in:
@@ -15,6 +15,9 @@ from frappe.utils import add_months, cint, formatdate, get_first_day, get_link_t
|
||||
from frappe.utils.nestedset import NestedSet, rebuild_tree
|
||||
|
||||
from erpnext.accounts.doctype.account.account import get_account_currency
|
||||
from erpnext.accounts.doctype.financial_report_template.financial_report_template import (
|
||||
sync_financial_report_templates,
|
||||
)
|
||||
from erpnext.setup.setup_wizard.operations.taxes_setup import setup_taxes_and_charges
|
||||
|
||||
|
||||
@@ -294,6 +297,7 @@ class Company(NestedSet):
|
||||
):
|
||||
if not frappe.local.flags.ignore_chart_of_accounts:
|
||||
frappe.flags.country_change = True
|
||||
sync_financial_report_templates(self.chart_of_accounts, self.existing_company)
|
||||
self.create_default_accounts()
|
||||
self.create_default_warehouses()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user