Commit 589cadaa authored by Hsinli's avatar Hsinli

add

parent 5f2789a3
Pipeline #19786 passed with stage
in 2 seconds
...@@ -45,7 +45,7 @@ class LoanCaculatorService extends Service { ...@@ -45,7 +45,7 @@ class LoanCaculatorService extends Service {
total_repayment: Number((commercialDebx.total_repayment + gjjDebx.total_repayment).toFixed(2)), total_repayment: Number((commercialDebx.total_repayment + gjjDebx.total_repayment).toFixed(2)),
total_interest: Number((commercialDebx.total_interest + gjjDebx.total_interest).toFixed(2)), total_interest: Number((commercialDebx.total_interest + gjjDebx.total_interest).toFixed(2)),
total_years: inputParams.commercial.years, total_years: inputParams.commercial.years,
list: {} list: []
} }
ret.debj = { ret.debj = {
month_repayment: Number((commercialDebj.month_repayment + gjjDebj.month_repayment).toFixed(2)), month_repayment: Number((commercialDebj.month_repayment + gjjDebj.month_repayment).toFixed(2)),
...@@ -53,7 +53,7 @@ class LoanCaculatorService extends Service { ...@@ -53,7 +53,7 @@ class LoanCaculatorService extends Service {
total_repayment: Number((commercialDebj.total_repayment + gjjDebj.total_repayment).toFixed(2)), total_repayment: Number((commercialDebj.total_repayment + gjjDebj.total_repayment).toFixed(2)),
total_interest: Number((commercialDebj.total_interest + gjjDebj.total_interest).toFixed(2)), total_interest: Number((commercialDebj.total_interest + gjjDebj.total_interest).toFixed(2)),
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 = 1; i <= Number(inputParams.commercial.years * 12); i++) {
ret.debx.list.push({ ret.debx.list.push({
......
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