diff --git a/src/views/contracts/ContractEdit.vue b/src/views/contracts/ContractEdit.vue
index 570bed4..5d0f080 100644
--- a/src/views/contracts/ContractEdit.vue
+++ b/src/views/contracts/ContractEdit.vue
@@ -32,11 +32,21 @@
-
+
-
- {{p.name }}
+
@@ -98,11 +108,6 @@ export default {
setcontract(newval) {
this.contract = newval
},
- product_search(val) {
- if (val && val.length > 1) {
- this.searchProducts(val)
- }
- },
customer_search(val) {
if (val && val.length > 2) {
this.searchCustomers(val)
@@ -175,8 +180,9 @@ export default {
console.log(err)
})
},
- searchProducts(code) {
- let url = this.$api_url + "/products/search/" + code
+ searchProducts() {
+ console.log("Searching for " & this.product_search)
+ let url = this.$api_url + "/products/search/" + this.product_search
axios.get(url)
.then(resp => {
console.log(resp)
@@ -184,7 +190,6 @@ export default {
})
.catch(err => {
console.log(err)
- this.products = [{code:"NoProductsFound", name:"No Products Found"}]
})
},
productCodeName(p) {