get standard chart of account if country code not found
This commit is contained in:
parent
80f8b7be2f
commit
44aaa56000
@ -85,6 +85,7 @@ def get_charts_for_country(country):
|
|||||||
charts.append(content["name"])
|
charts.append(content["name"])
|
||||||
|
|
||||||
country_code = frappe.db.get_value("Country", country, "code")
|
country_code = frappe.db.get_value("Country", country, "code")
|
||||||
|
if country_code:
|
||||||
path = os.path.join(os.path.dirname(__file__), "verified")
|
path = os.path.join(os.path.dirname(__file__), "verified")
|
||||||
for fname in os.listdir(path):
|
for fname in os.listdir(path):
|
||||||
if fname.startswith(country_code) and fname.endswith(".json"):
|
if fname.startswith(country_code) and fname.endswith(".json"):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user