mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 15:32:14 +00:00
fix: error message in coa importer
(cherry picked from commit 5d0a38dfc7)
This commit is contained in:
@@ -47,9 +47,11 @@ def validate_columns(data):
|
|||||||
|
|
||||||
no_of_columns = max([len(d) for d in data])
|
no_of_columns = max([len(d) for d in data])
|
||||||
|
|
||||||
if no_of_columns > 8:
|
if no_of_columns != 8:
|
||||||
frappe.throw(
|
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")),
|
title=(_("Wrong Template")),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user