diff --git a/components/new/new.vue b/components/new/new.vue index 141c660..fa89345 100644 --- a/components/new/new.vue +++ b/components/new/new.vue @@ -50,7 +50,10 @@ class="bi bi-plus" viewBox="0 0 16 16"> loans[sel].tax = t" @continue="generate" /> - + @@ -58,7 +61,7 @@ class="bi bi-plus" viewBox="0 0 16 16"> { if (fee.perc) fee.amount = (fee.perc / 100 * value).toFixed(2) }) + this.estimate.loans.forEach(l => {l.ltv = 0; l.amount = 0}) } @@ -190,7 +194,7 @@ function generate() { // Percentage values of fees always takek precedent over amounts. The conversion // happens in setPrice() export default { - components: { Summary, LoanDetails }, + components: { LoanSummary, LoanDetails }, methods: { generate, createFees, del, create, setPrice, setLtv, setAmount, setDti, setHousingDti diff --git a/components/new/summary.vue b/components/new/summary.vue index 17a6529..a5a9d5d 100644 --- a/components/new/summary.vue +++ b/components/new/summary.vue @@ -1,5 +1,49 @@ -