feat: support custom financial statements (#49098)

Co-authored-by: Abdeali Chharchhoda <abdealiking786@gmail.com>
This commit is contained in:
Smit Vora
2025-11-15 09:59:01 +05:30
committed by GitHub
parent b98f4611e6
commit 68cdadf11a
50 changed files with 11340 additions and 189 deletions

View File

@@ -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()