Skip to content

Commit

Permalink
Merge pull request #42590 from ljain112/coa
Browse files Browse the repository at this point in the history
fix: error message in coa importer
  • Loading branch information
ruthra-kumar authored Aug 13, 2024
2 parents 6c2700c + 5d0a38d commit 4426122
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 4426122

Please sign in to comment.