diff --git a/accounts/page/voucher_import_tool/voucher_import_tool.py b/accounts/page/voucher_import_tool/voucher_import_tool.py index b94864c211..1819e07705 100644 --- a/accounts/page/voucher_import_tool/voucher_import_tool.py +++ b/accounts/page/voucher_import_tool/voucher_import_tool.py @@ -160,6 +160,12 @@ def import_vouchers(common_values, data, start_idx, import_type): raise Exception doclist = Bean([jv]+details) + + # validate datatype + from core.page.data_import_tool.data_import_tool import check_record + for d in doclist: + check_record(d.fields, d.parenttype) + doclist.submit() messages.append("""
[row #%s]