fix mvi
Showing
2 changed files
with
4 additions
and
1 deletions
| ... | @@ -1719,7 +1719,7 @@ SME_BL_COMPARE_LOGIC = { | ... | @@ -1719,7 +1719,7 @@ SME_BL_COMPARE_LOGIC = { |
| 1719 | 1719 | ||
| 1720 | MVI_COMPARE_LOGIC = { | 1720 | MVI_COMPARE_LOGIC = { |
| 1721 | 'vinNo': ('车辆识别代码', 'se_common_compare', {}, '发票车架号与系统不一致'), | 1721 | 'vinNo': ('车辆识别代码', 'se_common_compare', {}, '发票车架号与系统不一致'), |
| 1722 | 'dealer': ('销方名称', 'se_contain_compare_2', {}, '发票销货单位名称与系统不一致'), | 1722 | 'dealer': ('销方名称', 'se_contain_compare_2', {'brackets_replace': True}, '发票销货单位名称与系统不一致'), |
| 1723 | 'vehicleTransactionAmount': ('价税合计小写', 'se_amount_compare', {}, '发票车辆价格与系统不一致'), | 1723 | 'vehicleTransactionAmount': ('价税合计小写', 'se_amount_compare', {}, '发票车辆价格与系统不一致'), |
| 1724 | 'customerName': ('购方名称', 'se_name_compare', {'is_passport': True, 'replace_kuohao': True}, '发票购买方姓名与系统不一致'), | 1724 | 'customerName': ('购方名称', 'se_name_compare', {'is_passport': True, 'replace_kuohao': True}, '发票购买方姓名与系统不一致'), |
| 1725 | 'idNum': ('购买方身份证号或组织机构代码', 'se_common_compare', {}, '发票购买方证件号码与系统不一致'), | 1725 | 'idNum': ('购买方身份证号或组织机构代码', 'se_common_compare', {}, '发票购买方证件号码与系统不一致'), | ... | ... |
| ... | @@ -390,6 +390,9 @@ class Comparison: | ... | @@ -390,6 +390,9 @@ class Comparison: |
| 390 | return self.RESULT_Y | 390 | return self.RESULT_Y |
| 391 | 391 | ||
| 392 | def se_contain_compare_2(self, input_str, ocr_str, **kwargs): | 392 | def se_contain_compare_2(self, input_str, ocr_str, **kwargs): |
| 393 | if kwargs.get('brackets_replace', False): | ||
| 394 | input_str = input_str.translate(self.KH_TRANS) | ||
| 395 | ocr_str = ocr_str.translate(self.KH_TRANS) | ||
| 393 | if input_str.find(ocr_str) == -1: | 396 | if input_str.find(ocr_str) == -1: |
| 394 | return self.RESULT_N | 397 | return self.RESULT_N |
| 395 | else: | 398 | else: | ... | ... |
-
Please register or sign in to post a comment