1.商务条件bug

This commit is contained in:
zhangbb 2019-07-08 18:05:45 +08:00
parent 7ffab300a0
commit b6a17eb789

View File

@ -827,6 +827,7 @@ function changeRateType(){
//¸ù¾Ý½ð¶îËã±ÈÀý
function getRatioByMoney(e){
debugger;
if(e.value === "") {
setItemValue(0, 0, e.id, "0");
}
@ -858,9 +859,9 @@ function getRatioByMoney(e){
}
var ratio = 100 - Number(firstPaymentRatio);
var firstPayment = equipAmt * Number(firstPaymentRatio) / 100;
/* if(Number(getItemValue(0, 0, "FIRST_PAYMENT")) != firstPayment) {
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 + "");
@ -910,7 +911,7 @@ function getRatioByMoney(e){
}
}
}
// var firstPayment = Number(getItemValue(0, 0, "FIRST_PAYMENT"));
var firstPayment = Number(getItemValue(0, 0, "FIRST_PAYMENT"));
if(allMoney != 0 ) {
setItemValue(0, 0, "ALL_FIRST_PAYMENT", firstPayment + "");
setItemValue(0, 0, "FIRST_PAYMENT", firstPayment + "");