messages updated in voucher import tool

This commit is contained in:
Nabin Hait 2013-03-05 18:23:34 +05:30
parent a0accd9f67
commit 46043f2d94

View File

@ -1,5 +1,6 @@
from __future__ import unicode_literals
import webnotes
from webnotes import _
from webnotes.utils import flt, comma_and
@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)]
if accounts and (len(columns) != rows[i+1].index(accounts[0])):
raise Exception, """All account columns should be after standard columns and \
on the right. Please rectify it in the file and try again."""
raise Exception, _("""All account columns should be after \
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