From 1f43411eabe1b89a77f1e62e862bbf51bac80312 Mon Sep 17 00:00:00 2001 From: Nadim Salloum Date: Thu, 17 Jun 2021 21:35:44 +0300 Subject: [PATCH] fix contracttype --- public/js/app.js | 12 ++++++------ resources/js/Pages/Contracts/Create.vue | 4 ++-- resources/js/Pages/Contracts/CreateFromCar.vue | 6 +++--- resources/js/Pages/Contracts/CreateFromContact.vue | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/public/js/app.js b/public/js/app.js index 338a4db..0d8aad6 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -21127,7 +21127,7 @@ __webpack_require__.r(__webpack_exports__); insurance_type: '0', car_id: this.car.id, contact_id: this.contact.id, - is_sell_contract: this.type == 'SellContract' + is_sell_contract: this.type == '0' } }; }, @@ -21139,7 +21139,7 @@ __webpack_require__.r(__webpack_exports__); return this.isSellContract ? 'Käufer' : 'Verkäufer'; }, isSellContract: function isSellContract() { - return this.type == 'SellContract'; + return this.type === '1'; } } }); @@ -21205,7 +21205,7 @@ __webpack_require__.r(__webpack_exports__); address: null, zip: null, city: null, - country: null, + country: 'CH', notes: null, errors: {} }, @@ -21220,7 +21220,7 @@ __webpack_require__.r(__webpack_exports__); return this.isSellContract ? 'Käufer' : 'Verkäufer'; }, isSellContract: function isSellContract() { - return this.type == 'SellContract'; + return this.type == '1'; }, emptyContact: function emptyContact() { return { @@ -21232,7 +21232,7 @@ __webpack_require__.r(__webpack_exports__); phone: null, address: null, zip: null, - city: null, + city: 'CH', country: null, notes: null, errors: {} @@ -21360,7 +21360,7 @@ __webpack_require__.r(__webpack_exports__); return this.isSellContract ? 'Käufer' : 'Verkäufer'; }, isSellContract: function isSellContract() { - return this.type == 'SellContract'; + return this.type == '1'; }, emptyCar: function emptyCar() { return { diff --git a/resources/js/Pages/Contracts/Create.vue b/resources/js/Pages/Contracts/Create.vue index 4c15877..d384b9b 100644 --- a/resources/js/Pages/Contracts/Create.vue +++ b/resources/js/Pages/Contracts/Create.vue @@ -97,7 +97,7 @@ export default { insurance_type: '0', car_id: this.car.id, contact_id: this.contact.id, - is_sell_contract: this.type == 'SellContract', + is_sell_contract: this.type == '0', }, }; }, @@ -109,7 +109,7 @@ export default { return this.isSellContract ? 'Käufer' : 'Verkäufer'; }, isSellContract() { - return this.type == 'SellContract'; + return this.type === '1'; }, }, }; diff --git a/resources/js/Pages/Contracts/CreateFromCar.vue b/resources/js/Pages/Contracts/CreateFromCar.vue index be9d598..09bf79d 100644 --- a/resources/js/Pages/Contracts/CreateFromCar.vue +++ b/resources/js/Pages/Contracts/CreateFromCar.vue @@ -107,7 +107,7 @@ export default { address: null, zip: null, city: null, - country: null, + country: 'CH', notes: null, errors: {}, }, @@ -122,7 +122,7 @@ export default { return this.isSellContract ? 'Käufer' : 'Verkäufer'; }, isSellContract() { - return this.type == 'SellContract'; + return this.type == '1'; }, emptyContact() { return { @@ -134,7 +134,7 @@ export default { phone: null, address: null, zip: null, - city: null, + city: 'CH', country: null, notes: null, errors: {}, diff --git a/resources/js/Pages/Contracts/CreateFromContact.vue b/resources/js/Pages/Contracts/CreateFromContact.vue index bb899ed..1750b24 100644 --- a/resources/js/Pages/Contracts/CreateFromContact.vue +++ b/resources/js/Pages/Contracts/CreateFromContact.vue @@ -125,7 +125,7 @@ export default { return this.isSellContract ? 'Käufer' : 'Verkäufer'; }, isSellContract() { - return this.type == 'SellContract'; + return this.type == '1'; }, emptyCar() { return {