4a8d70b3 by 冯轩

mod

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