fix contracttype

shift-build-2464
Nadim Salloum 2021-06-17 21:35:44 +03:00
parent 7a4a735d43
commit 1f43411eab
4 changed files with 12 additions and 12 deletions

12
public/js/app.js vendored
View File

@ -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 {

View File

@ -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';
},
},
};

View File

@ -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: {},

View File

@ -125,7 +125,7 @@ export default {
return this.isSellContract ? 'Käufer' : 'Verkäufer';
},
isSellContract() {
return this.type == 'SellContract';
return this.type == '1';
},
emptyCar() {
return {