mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 20:49:19 +00:00
messages updated in voucher import tool
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import webnotes
|
import webnotes
|
||||||
|
from webnotes import _
|
||||||
from webnotes.utils import flt, comma_and
|
from webnotes.utils import flt, comma_and
|
||||||
|
|
||||||
@webnotes.whitelist()
|
@webnotes.whitelist()
|
||||||
@@ -244,7 +245,10 @@ def get_data(rows, company_abbr):
|
|||||||
accounts = [c for c in rows[i+1] if c.endswith(" - " + company_abbr)]
|
accounts = [c for c in rows[i+1] if c.endswith(" - " + company_abbr)]
|
||||||
|
|
||||||
if accounts and (len(columns) != rows[i+1].index(accounts[0])):
|
if accounts and (len(columns) != rows[i+1].index(accounts[0])):
|
||||||
raise Exception, """All account columns should be after standard columns and \
|
raise Exception, _("""All account columns should be after \
|
||||||
on the right. Please rectify it in the file and try again."""
|
standard columns and on the right.
|
||||||
|
If you entered it properly, next probable reason \
|
||||||
|
could be wrong account name.
|
||||||
|
Please rectify it in the file and try again.""")
|
||||||
|
|
||||||
return data, start_row_idx
|
return data, start_row_idx
|
||||||
Reference in New Issue
Block a user