资金利息算法变更

master
xxssyyyyssxx 2021-11-13 11:16:56 +08:00
parent 0128a8261a
commit 0aeb024e40
1 changed files with 3 additions and 2 deletions

View File

@ -489,7 +489,7 @@ function updateEachCapitalInterest() {
//找到本月之前的所有的垫资和回款
var underwrittenPlan = summationByClass($(this),".input-changeable-underwritten-plan-budget-plan", index);
var repaymentPlan= summationByClass($(this),".input-changeable-repayment-plan-budget-plan", index);
console.log(underwrittenPlan, repaymentPlan);
var capitalInterest = f2((underwrittenPlan-repaymentPlan)*underwrittenPlanTaxRate/100/12);
total += capitalInterest;
@ -511,7 +511,8 @@ function summationByClass(input, className, myIndex) {
var trs = input.parent().parent().parent().find("tr");
trs.each(function (index, element) {
//myIndex从0开始刨除表头和总计两行
if(index-2<=myIndex){
index-=2;
if(index>=0 && index<=myIndex){
total += f2($(this).find(className).val());
}
});