4a8d70b3 by 冯轩

mod

1 parent fc8550d9
......@@ -2732,12 +2732,12 @@ def se_compare_license(license_en, ocr_res_dict, field_list, is_auto):
error_type = empty_error_type if result == consts.RESULT_Y else ErrorType.OCR.value
result_field_list.append((name, value, result, ocr_str, img_path, error_type, compare_logic[name][3]))
# CHINARPA-5620 电子发票返回CMS时 增加COMMENTS "此单为电子数控发票"
if ocr_field == consts.MVI_OCR_FIELD :
e_invoice = ocr_res_list[res_idx].get('电子发票')
if e_invoice is not None and e_invoice == '是':
result_field_list.append(('是否电子发票', '是/否', 'Y', '是', empty_str, empty_error_type, '此单为电子数控发票'))
else:
result_field_list.append(('是否电子发票', '是/否', 'Y', '否', empty_str, empty_error_type, '此单为电子数控发票'))
if ocr_field == consts.MVI_OCR_FIELD :
e_invoice = ocr_res_list[res_idx].get('电子发票')
if e_invoice is not None and e_invoice == '是':
result_field_list.append(('是否电子发票', '是/否', 'Y', '是', empty_str, empty_error_type, '此单为电子数控发票'))
else:
result_field_list.append(('是否电子发票', '是/否', 'Y', '否', empty_str, empty_error_type, '此单为电子数控发票'))
else:
no_ocr_result = True
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!