Merge pull request #42739 from frappe/mergify/bp/version-15-hotfix/pr-42590

fix: error message in coa importer (backport #42590)
This commit is contained in:
ruthra kumar
2024-08-13 14:35:53 +05:30
committed by GitHub

View File

@@ -47,9 +47,11 @@ def validate_columns(data):
no_of_columns = max([len(d) for d in data])
if no_of_columns > 8:
if no_of_columns != 8:
frappe.throw(
_("More columns found than expected. Please compare the uploaded file with standard template"),
_(
"Columns are not according to template. Please compare the uploaded file with standard template"
),
title=(_("Wrong Template")),
)