Skip to content

Commit

Permalink
Merge pull request #44218 from frappe/mergify/bp/version-15-hotfix/pr…
Browse files Browse the repository at this point in the history
…-44190

fix(setup): Fix typo in COA setup (backport #44190)
  • Loading branch information
ruthra-kumar authored Nov 19, 2024
2 parents 610c483 + 7abcfca commit 704452a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion erpnext/setup/setup_wizard/operations/taxes_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ def simple_to_detailed(templates):
def from_detailed_data(company_name, data):
"""Create Taxes and Charges Templates from detailed data."""
charts_company_name = company_name
if frappe.db.get_value("Company", company_name, "create_chart_of_accounts_based_on"):
if (
frappe.db.get_value("Company", company_name, "create_chart_of_accounts_based_on")
== "Existing Company"
):
charts_company_name = frappe.db.get_value("Company", company_name, "existing_company")
coa_name = frappe.db.get_value("Company", charts_company_name, "chart_of_accounts")
coa_data = data.get("chart_of_accounts", {})
Expand Down

0 comments on commit 704452a

Please sign in to comment.