chang asp
Showing
1 changed file
with
12 additions
and
12 deletions
| ... | @@ -1141,19 +1141,19 @@ def get_se_cms_compare_info_auto(last_obj, application_entity): | ... | @@ -1141,19 +1141,19 @@ def get_se_cms_compare_info_auto(last_obj, application_entity): | 
| 1141 | # if tmp_asp_name.find('机动车辆保险') != -1: | 1141 | # if tmp_asp_name.find('机动车辆保险') != -1: | 
| 1142 | # insurance_price = asp_info.get('price', '0.00') | 1142 | # insurance_price = asp_info.get('price', '0.00') | 
| 1143 | 1143 | ||
| 1144 | # fin_total = 0 | 1144 | fin_total = 0 | 
| 1145 | fin_total_tmp = cms_info.get('associatedServices', {}).get('financed total', '0.00') | 1145 | # fin_total_tmp = cms_info.get('associatedServices', {}).get('financed total', '0.00') | 
| 1146 | fin_total = '0.00' if fin_total_tmp.strip() == '' else fin_total_tmp | 1146 | # fin_total = '0.00' if fin_total_tmp.strip() == '' else fin_total_tmp | 
| 1147 | for asp_name, _, asp_fin in asp_list: | 1147 | for asp_name, _, asp_fin in asp_list: | 
| 1148 | if gzs_status == consts.GZS_STATUS[2] and asp_name.find(consts.GZS_NAME) == -1: | 1148 | if gzs_status == consts.GZS_STATUS[2] and asp_name.find(consts.GZS_NAME) == -1: | 
| 1149 | gzs_status = consts.GZS_STATUS[0] | 1149 | gzs_status = consts.GZS_STATUS[0] | 
| 1150 | # fin_total += float(asp_fin) | 1150 | fin_total += float(asp_fin) | 
| 1151 | asp_list.append( | 1151 | asp_list.append( | 
| 1152 | ( | 1152 | ( | 
| 1153 | consts.ASP_SUM_NAME, | 1153 | consts.ASP_SUM_NAME, | 
| 1154 | '', | 1154 | '', | 
| 1155 | fin_total, | 1155 | # fin_total, | 
| 1156 | # format(fin_total, '.2f'), | 1156 | format(fin_total, '.2f'), | 
| 1157 | ) | 1157 | ) | 
| 1158 | ) | 1158 | ) | 
| 1159 | 1159 | ||
| ... | @@ -1615,19 +1615,19 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list): | ... | @@ -1615,19 +1615,19 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list): | 
| 1615 | if tmp_asp_name.find('机动车辆保险') != -1: | 1615 | if tmp_asp_name.find('机动车辆保险') != -1: | 
| 1616 | insurance_price = asp_info.get('price', '0.00') | 1616 | insurance_price = asp_info.get('price', '0.00') | 
| 1617 | 1617 | ||
| 1618 | # fin_total = 0 | 1618 | fin_total = 0 | 
| 1619 | fin_total_tmp = cms_info.get('associatedServices', {}).get('financed total', '0.00') | 1619 | # fin_total_tmp = cms_info.get('associatedServices', {}).get('financed total', '0.00') | 
| 1620 | fin_total = '0.00' if fin_total_tmp.strip() == '' else fin_total_tmp | 1620 | # fin_total = '0.00' if fin_total_tmp.strip() == '' else fin_total_tmp | 
| 1621 | for asp_name, _, asp_fin in asp_list: | 1621 | for asp_name, _, asp_fin in asp_list: | 
| 1622 | if gzs_status == consts.GZS_STATUS[2] and asp_name.find(consts.GZS_NAME) == -1: | 1622 | if gzs_status == consts.GZS_STATUS[2] and asp_name.find(consts.GZS_NAME) == -1: | 
| 1623 | gzs_status = consts.GZS_STATUS[0] | 1623 | gzs_status = consts.GZS_STATUS[0] | 
| 1624 | # fin_total += float(asp_fin) | 1624 | fin_total += float(asp_fin) | 
| 1625 | asp_list.append( | 1625 | asp_list.append( | 
| 1626 | ( | 1626 | ( | 
| 1627 | consts.ASP_SUM_NAME, | 1627 | consts.ASP_SUM_NAME, | 
| 1628 | '', | 1628 | '', | 
| 1629 | fin_total, | 1629 | # fin_total, | 
| 1630 | # format(fin_total, '.2f'), | 1630 | format(fin_total, '.2f'), | 
| 1631 | ) | 1631 | ) | 
| 1632 | ) | 1632 | ) | 
| 1633 | 1633 | ... | ... | 
- 
Please register or sign in to post a comment