1.修改商务条件0首付时出现的bug。

This commit is contained in:
zhangbb 2018-11-22 10:33:15 +08:00
parent 0f9d09f648
commit 31e2f47d1b
2 changed files with 6 additions and 3 deletions

View File

@ -871,8 +871,8 @@ function getRatioByMoney(e){
setValue(key,Number(money*fundRatio/100).toFixed(2));
}else{
if(Number(equipAmt)!=0){
if(key='FIRST_PAYMENT'){
fundMoney=firstPayment;
if(key=='FIRST_PAYMENT'){
fundMoney=Number(firstPayment).toFixed(2);
fundRatio=Number(fundMoney/money*100).toFixed(6);
setValue(key,fundMoney);
}
@ -887,7 +887,7 @@ function getRatioByMoney(e){
}
}
// var firstPayment = Number(getItemValue(0, 0, "FIRST_PAYMENT"));
if(allMoney != 0 && firstPayment != 0) {
if(allMoney != 0 ) {
setItemValue(0, 0, "ALL_FIRST_PAYMENT", firstPayment + "");
setItemValue(0, 0, "ALL_FIRST_PAYMENT_RATIO", ((firstPayment / allMoney) * 100).toFixed(6));
setItemValue(0, 0, "ALL_FIRST_PAYMENT_RATIO_0", ((firstPayment / allMoney) * 100).toFixed(6));

View File

@ -38,6 +38,9 @@ public class ConditionCheck extends DefaultBussinessCheck {
List<BizObject> rentList=JBOFactory.createBizObjectQuery(LC_RENT_PLAN_TEMP.CLASS_NAME,"flowunid=:flowunid and payment_number=:paymentnumber order by plan_list").setParameter("flowunid",flowunid).setParameter("paymentnumber", paymentnumber).getResultList(false);
int i=0;
Date date=bo.getAttribute("start_date").getDate();
String a=bo.getAttribute("CLEAN_LEASE_MONEY").getString();
String b=bo.getAttribute("EQUIP_END_VALUE").getString();
//期末余值为空导致报错
BigDecimal cleanMoney=new BigDecimal(bo.getAttribute("CLEAN_LEASE_MONEY").getString()).subtract(new BigDecimal(bo.getAttribute("EQUIP_END_VALUE").getString()));
BigDecimal corpus=BigDecimal.ZERO;
BigDecimal CORPUS_BUSINESS=BigDecimal.ZERO;