bf482ece by 周伟奇

fix bug

1 parent bf9a6f86
......@@ -1448,26 +1448,26 @@ SE_AFC_CON_FIELD = ['合同编号-每页', '所购车辆价格-小写-重要条
# '项目1', '用途总金额', '贷款本金', '附加产品融资贷款本金总金额', '购置税校验'
ROLE_LIST = [
('借款人签字及时间', 'Borrower', 0, 0, True),
('借款人姓名', 'Borrower', 0, 0, True),
('借款人证件号', 'Borrower', 0, 2, True),
('主借人签字', 'Borrower', 0, 0, True),
('主借人日期', 'Borrower', 0, '有', True),
('共借人姓名', 'Co-Borrower', 0, 0, False),
('共借人证件号', 'Co-Borrower', 0, 2, False),
('共借人签字', 'Co-Borrower', 0, 0, False),
('共借人日期', 'Co-Borrower', 0, '有', False),
('保证人姓名1', 'Guarantor', 0, 0, False),
('保证人证件号1', 'Guarantor', 0, 2, False),
('保证人签字1', 'Guarantor', 0, 0, False),
('保证人日期1', 'Guarantor', 0, '有', False),
('保证人姓名2', 'Guarantor', 1, 0, False),
('保证人证件号2', 'Guarantor', 1, 2, False),
('保证人签字2', 'Guarantor', 1, 0, False),
('保证人日期2', 'Guarantor', 1, '有', False),
('借款人签字及时间', 'Borrower', 0, 0, True, True),
('借款人姓名', 'Borrower', 0, 0, True, True),
('借款人证件号', 'Borrower', 0, 2, True, True),
('主借人签字', 'Borrower', 0, 0, True, False),
('主借人日期', 'Borrower', 0, '有', True, False),
('共借人姓名', 'Co-Borrower', 0, 0, False, True),
('共借人证件号', 'Co-Borrower', 0, 2, False, True),
('共借人签字', 'Co-Borrower', 0, 0, False, False),
('共借人日期', 'Co-Borrower', 0, '有', False, False),
('保证人姓名1', 'Guarantor', 0, 0, False, True),
('保证人证件号1', 'Guarantor', 0, 2, False, True),
('保证人签字1', 'Guarantor', 0, 0, False, False),
('保证人日期1', 'Guarantor', 0, '有', False, False),
('保证人姓名2', 'Guarantor', 1, 0, False, True),
('保证人证件号2', 'Guarantor', 1, 2, False, True),
('保证人签字2', 'Guarantor', 1, 0, False, False),
('保证人日期2', 'Guarantor', 1, '有', False, False),
]
GZS_NAME = '车辆购置税'
......
......@@ -1165,7 +1165,10 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list):
# afc_contract_input.append((consts.SE_AFC_CON_FIELD[22], consts.SPLIT_STR.join(gzs_list)))
# '借款人签字及时间', 'Borrower', 0, 0, True
for key, app_type, id_idx, field_idx, is_force in consts.ROLE_LIST:
online_sign = cms_info.get('contractSource', 'Online Sign') == 'Online Sign'
for key, app_type, id_idx, field_idx, is_force, e_write in consts.ROLE_LIST:
if not e_write and not online_sign:
continue
is_find = False
if app_type in main_role_info:
if len(main_role_info[app_type]) >= id_idx+1:
......@@ -1177,6 +1180,7 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list):
if not is_find and is_force:
afc_contract_input.append((key, empty_str))
if online_sign:
afc_contract_input.append((consts.SE_AFC_CON_FIELD[18], consts.SE_STAMP_VALUE))
afc_contract_input.append((consts.SE_AFC_CON_FIELD[19], empty_str))
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!