init 5620
Showing
1 changed file
with
11 additions
and
0 deletions
... | @@ -2731,6 +2731,14 @@ def se_compare_license(license_en, ocr_res_dict, field_list, is_auto): | ... | @@ -2731,6 +2731,14 @@ def se_compare_license(license_en, ocr_res_dict, field_list, is_auto): |
2731 | value = json.dumps(value, ensure_ascii=False) | 2731 | value = json.dumps(value, ensure_ascii=False) |
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 "此单为电子数控发票" | ||
2735 | if ocr_field == consts.MVI_OCR_FIELD : | ||
2736 | e_invoice = ocr_res_list[res_idx].get('电子发票') | ||
2737 | if e_invoice is not None and e_invoice == '是': | ||
2738 | result_field_list.append(('是否电子发票', '是/否', 'Y', '是', empty_str, empty_error_type, '此单为电子数控发票')) | ||
2739 | else: | ||
2740 | result_field_list.append(('是否电子发票', '是/否', 'Y', '否', empty_str, empty_error_type, '此单为电子数控发票')) | ||
2741 | |||
2734 | else: | 2742 | else: |
2735 | no_ocr_result = True | 2743 | no_ocr_result = True |
2736 | 2744 | ||
... | @@ -3523,6 +3531,9 @@ def se_compare_process(compare_info, ocr_res_dict, is_gsyh, is_auto, id_res_list | ... | @@ -3523,6 +3531,9 @@ def se_compare_process(compare_info, ocr_res_dict, is_gsyh, is_auto, id_res_list |
3523 | elif isinstance(cn_reason, list): | 3531 | elif isinstance(cn_reason, list): |
3524 | cn_reason_list.extend(cn_reason) | 3532 | cn_reason_list.extend(cn_reason) |
3525 | rpa_failure_reason.setdefault('、'.join(cn_reason), []).append(value) | 3533 | rpa_failure_reason.setdefault('、'.join(cn_reason), []).append(value) |
3534 | # | ||
3535 | if license_en == consts.MVI_EN and name == '是否电子发票' and ocr_str == '是': | ||
3536 | cn_reason_list.append(cn_reason) | ||
3526 | compare_result.append( | 3537 | compare_result.append( |
3527 | { | 3538 | { |
3528 | consts.HEAD_LIST[0]: info_key, | 3539 | consts.HEAD_LIST[0]: info_key, | ... | ... |
-
Please register or sign in to post a comment