diff --git a/assets/main.css b/assets/main.css index 31af21c..14ac617 100644 --- a/assets/main.css +++ b/assets/main.css @@ -387,7 +387,7 @@ section.mi .row input[type=checkbox] { section.estimates .entry { padding: 10px 3px; - border: 2px solid var(--outline); + border-bottom: 2px solid var(--outline); border-radius: 3px; } diff --git a/components/estimates.vue b/components/estimates.vue index 0c1f7b4..ceb7ed7 100644 --- a/components/estimates.vue +++ b/components/estimates.vue @@ -32,8 +32,9 @@

Saved Estimates

-
- +
+ {{e.id}} - {{e.property}} - ${{(e.price/100).toLocaleString()}}
diff --git a/skouter.go b/skouter.go index 065b629..13c052a 100644 --- a/skouter.go +++ b/skouter.go @@ -96,7 +96,7 @@ type Loan struct { Dti float32 `json:"dti"` Hoi int `json:"hoi"` Hazard int `json:"hazard"` - Tax int `json:"hoi"` + Tax int `json:"tax"` Interest float32 `json:"interest"` Mi MI `json:"mi"` Fees []Fee `json:"fees"` @@ -915,15 +915,18 @@ func getResults(db *sql.DB, e int, id int) ( []Result, error ) { var err error query = `SELECT - id, + r.id, loan_id, loan_payment, total_monthly, total_fees, total_credits, - cash_to_close, - FROM estimate_result WHERE id = CASE @e := ? WHEN 0 THEN id ELSE @e END AND - loan_id = ( SELECT id FROM loan WHERE loan.estimate_id = ? ) + cash_to_close + FROM estimate_result r + INNER JOIN loan + ON r.loan_id = loan.id + WHERE r.id = CASE @e := ? WHEN 0 THEN r.id ELSE @e END + AND loan.estimate_id = ? ` rows, err = db.Query(query, id, e)