datatype validation in voucher import tool
This commit is contained in:
parent
95a72a7a4a
commit
1ead851e16
@ -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("""<p style='color: green'>[row #%s]
|
||||
|
Loading…
x
Reference in New Issue
Block a user