misc fixes for Thirdparty / addPerson

* set default values for ThirdParty in ThirdParty.vue
* set correct value for binding with phone (telephone instead of
phonenumber)
* add validation on ThirdParty/denomination: at least two characters, no
Null value
This commit is contained in:
2022-02-17 22:42:52 +01:00
parent 99afd2e830
commit caaebd593b
5 changed files with 44 additions and 37 deletions

View File

@@ -78,7 +78,7 @@ export default {
case 'thirdparty':
let data = this.$refs.castThirdparty.$data.thirdparty;
data.name = data.text;
if (data.address !== undefined) {
if (data.address !== null) {
data.address = { id: data.address.address_id }
} else {
data.address = null;