361ef3c5 by 周伟奇

asp bak

1 parent 9b983b68
......@@ -1114,6 +1114,7 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list):
asp_list = []
gzs_status = consts.GZS_STATUS[1]
gzs_price = '0.00'
# for asp_info in cms_info.get('associatedServices', []):
for asp_info in cms_info.get('associatedServices', {}).get('SubassociatedServices', []):
tmp_asp_name = asp_info.get('associatedServices')
if isinstance(tmp_asp_name, str) and len(tmp_asp_name) > 0:
......@@ -1128,16 +1129,19 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list):
)
)
# fin_total = 0
fin_total_tmp = cms_info.get('associatedServices', {}).get('financed total', '0.00')
fin_total = '0.00' if fin_total_tmp.strip() == '' else fin_total_tmp
for asp_name, _, asp_fin in asp_list:
if gzs_status == consts.GZS_STATUS[2] and asp_name.find(consts.GZS_NAME) == -1:
gzs_status = consts.GZS_STATUS[0]
# fin_total += float(asp_fin)
asp_list.append(
(
consts.ASP_SUM_NAME,
'',
fin_total,
# format(fin_total, '.2f'),
)
)
afc_contract_input.append((consts.SE_AFC_CON_FIELD[20], asp_list))
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!