Skip to content

Commit

Permalink
fix(setup): Fix typo in COA setup
Browse files Browse the repository at this point in the history
  • Loading branch information
cogk committed Nov 18, 2024
1 parent 2ada270 commit eacb39b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 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,7 @@ 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 eacb39b

Please sign in to comment.