diff --git a/components/app.vue b/components/app.vue
index 7b85f77..29c4aef 100644
--- a/components/app.vue
+++ b/components/app.vue
@@ -28,7 +28,7 @@
import SideBar from "./sidebar.vue"
import Spinner from "./spinner.vue"
import Home from "./home.vue"
-import NewEstimate from "./new.vue"
+import NewEstimate from "./new/new.vue"
import Estimates from "./estimates.vue"
import Settings from "./settings.vue"
import SignOut from "./sign-out.vue"
diff --git a/components/new.vue b/components/new/details.vue
similarity index 64%
rename from components/new.vue
rename to components/new/details.vue
index 45c1419..e36dbcf 100644
--- a/components/new.vue
+++ b/components/new/details.vue
@@ -1,31 +1,10 @@
-
-
-
New Loan
-
-
-
- sel = indx"
->
-{{l.title}}
-
-
-
-
-
diff --git a/components/new/new.vue b/components/new/new.vue
new file mode 100644
index 0000000..2836d3d
--- /dev/null
+++ b/components/new/new.vue
@@ -0,0 +1,152 @@
+
+
+
+
New Loan
+
+
+
+ sel = indx"
+>
+{{l.title}}
+
+
+
+
+
+
loans[sel].title = name"
+ @del="del"
+/>
+
+
+
+
+
+
diff --git a/components/new/summary.vue b/components/new/summary.vue
new file mode 100644
index 0000000..17a6529
--- /dev/null
+++ b/components/new/summary.vue
@@ -0,0 +1,5 @@
+
+
+
+
diff --git a/skouter.go b/skouter.go
index 82f3d6f..8e2ad7a 100644
--- a/skouter.go
+++ b/skouter.go
@@ -85,10 +85,11 @@ type LoanType struct {
}
type Loan struct {
- Id int `json:id`
- EstimateId int `json:estimate_id`
- Type LoanType `json:"loanType"`
+ Id int `json:id`
+ EstimateId int `json:estimate_id`
+ Type LoanType `json:"loanType"`
Amount int `json:"loanAmount"`
+ Amortization string `json:"loanAmount"`
Term int `json:"term"`
Ltv float32 `json:"ltv"`
Dti float32 `json:"dti"`
@@ -112,6 +113,18 @@ type MI struct {
InitialAmount float32
}
+type Result struct {
+ User int `json:"user"`
+ Borrower Borrower `json:"borrower"`
+ Transaction string `json:"transaction"`
+ Price int `json:"price"`
+ Property string `json:"property"`
+ Occupancy string `json:"occupancy"`
+ Zip string `json:"zip"`
+ Pud bool `json:"pud"`
+ Loans []Loan `json:"loans"`
+}
+
type Estimate struct {
Id int `json:"id"`
User int `json:"user"`
@@ -547,6 +560,10 @@ func fetchMi(db *sql.DB, estimate *Estimate, pos int) []MI {
return result
}
+// Make comparison PDF
+func generatePDF(w http.ResponseWriter, db *sql.DB, r *http.Request) {
+}
+
func login(w http.ResponseWriter, db *sql.DB, r *http.Request) {
var id int
var role string