Merge pull request #42590 from ljain112/coa

fix: error message in coa importer
This commit is contained in:
ruthra kumar
2024-08-13 14:01:49 +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")),
)