修改综合融资额问题

This commit is contained in:
zhulianghua 2018-08-24 20:06:01 +08:00
parent 0b977e3e3e
commit e8afde0f78

View File

@ -835,6 +835,9 @@ function getRatioByMoney(e){
}
var ratio = 100 - Number(firstPaymentRatio);
var firstPayment = equipAmt * Number(firstPaymentRatio) / 100;
if(Number(getItemValue(0, 0, "FIRST_PAYMENT")) != firstPayment) {
firstPayment = Number(getItemValue(0, 0, "FIRST_PAYMENT"));
}
cleanLeaseMoney = equipAmt - firstPayment + Number(allMoney);
setItemValue(0, 0, "RENT_RATIO", ((cleanLeaseMoney / equipAmt) * 100).toFixed(6) + "");
setItemValue(0, 0, "CLEAN_LEASE_MONEY", cleanLeaseMoney + "");