fb1a1507 by 冯轩

init 5620

1 parent adb37243
......@@ -2731,6 +2731,14 @@ def se_compare_license(license_en, ocr_res_dict, field_list, is_auto):
value = json.dumps(value, ensure_ascii=False)
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, '此单为电子数控发票'))
else:
no_ocr_result = True
......@@ -3523,6 +3531,9 @@ def se_compare_process(compare_info, ocr_res_dict, is_gsyh, is_auto, id_res_list
elif isinstance(cn_reason, list):
cn_reason_list.extend(cn_reason)
rpa_failure_reason.setdefault('、'.join(cn_reason), []).append(value)
#
if license_en == consts.MVI_EN and name == '是否电子发票' and ocr_str == '是':
cn_reason_list.append(cn_reason)
compare_result.append(
{
consts.HEAD_LIST[0]: info_key,
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!