Skip to content

Commit

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

fix: error message in coa importer (backport #42590)
  • Loading branch information
ruthra-kumar authored Aug 13, 2024
2 parents 6eaad90 + 20c1bcd commit f109164
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
)

Expand Down

0 comments on commit f109164

Please sign in to comment.