Commit ae4db6c7 authored by Hsinli's avatar Hsinli

addd

parent 872bfbd3
Pipeline #19792 passed with stage
in 1 minute 13 seconds
...@@ -55,7 +55,7 @@ class LoanCaculatorService extends Service { ...@@ -55,7 +55,7 @@ class LoanCaculatorService extends Service {
total_years: inputParams.commercial.years, total_years: inputParams.commercial.years,
list: [] list: []
} }
for (let i = 1; i <= Number(inputParams.commercial.years * 12); i++) { for (let i = 0; i < Number(inputParams.commercial.years * 12); i++) {
ret.debx.list.push({ ret.debx.list.push({
repayment: Number((commercialDebx.list[i].repayment + gjjDebx.list[i].repayment).toFixed(2)), repayment: Number((commercialDebx.list[i].repayment + gjjDebx.list[i].repayment).toFixed(2)),
pricipal: Number((commercialDebx.list[i].pricipal + gjjDebx.list[i].pricipal).toFixed(2)), pricipal: Number((commercialDebx.list[i].pricipal + gjjDebx.list[i].pricipal).toFixed(2)),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment