fixed voucher import tool
diff --git a/accounts/page/accounts_home/accounts_home.html b/accounts/page/accounts_home/accounts_home.html
index 11cf126..7fb2c32 100644
--- a/accounts/page/accounts_home/accounts_home.html
+++ b/accounts/page/accounts_home/accounts_home.html
@@ -78,8 +78,11 @@
title = "Check your Balance Sheet and Profit & Loss Statement"
href="#!Financial Statements">Financial Statements</a>
</div>
-
-
+ <div class="section-item">
+ <a class="section-link"
+ title = "Import Multiple Vouchers from CSV"
+ href="#voucher-import-tool">Voucher Import Tool</a>
+ </div>
</div>
</div>
diff --git a/accounts/page/voucher_import_tool/voucher_import_tool.py b/accounts/page/voucher_import_tool/voucher_import_tool.py
index 1cbeb99..89ed1c0 100644
--- a/accounts/page/voucher_import_tool/voucher_import_tool.py
+++ b/accounts/page/voucher_import_tool/voucher_import_tool.py
@@ -76,11 +76,10 @@
"against_journal_voucher:against_jv"], d, detail.fields)
webnotes.conn.commit()
-
for i in xrange(len(data)):
d = data[i]
jv = webnotes.DictObj()
- webnotes.message_log = []
+
try:
d.posting_date = user_to_str(d.posting_date)
d.due_date = user_to_str(d.due_date)
@@ -123,7 +122,7 @@
webnotes.message_log = []
- return messages
+ return messages
def get_common_values(rows):
start = False
@@ -155,7 +154,6 @@
if r[0]=="--------Data----------":
start_row = i+2
columns = [c.replace(" ", "_").lower() for c in rows[i+1]]
-
return data
@webnotes.whitelist()