diff --git a/pages/createDocument/edit/[[id]].vue b/pages/createDocument/edit/[[id]].vue index 68c444b..f4d86af 100644 --- a/pages/createDocument/edit/[[id]].vue +++ b/pages/createDocument/edit/[[id]].vue @@ -485,14 +485,15 @@ const setCustomerData = async (customerId, loadOnlyAdress = false) => { const setContactPersonData = async () => { //console.log(itemInfo.value.contactPerson) //TODO: BACKEND CHANGE Set Profile - let profile = (await useNuxtApp().$api(`/api/user/${itemInfo.value.created_by}`, { - method: "GET" - })).profile - - itemInfo.value.contactPersonName = profile.full_name - itemInfo.value.contactTel = profile.mobile_tel || profile.fixed_tel || "" - itemInfo.value.contactEMail = profile.email + if(itemInfo.value.created_by) { + let profile = (await useNuxtApp().$api(`/api/user/${itemInfo.value.created_by}`, { + method: "GET" + })).profile + itemInfo.value.contactPersonName = profile.full_name + itemInfo.value.contactTel = profile.mobile_tel || profile.fixed_tel || "" + itemInfo.value.contactEMail = profile.email + } } const showAdvanceInvoiceCalcModal = ref(false) diff --git a/stores/data.js b/stores/data.js index 554177b..264537a 100644 --- a/stores/data.js +++ b/stores/data.js @@ -748,7 +748,7 @@ export const useDataStore = defineStore('data', () => { inputType: "text", inputColumn: "Abrechnung" },{ - key: 'bankinBIC', + key: 'bankingBIC', label: "BIC", inputType: "text", inputColumn: "Abrechnung"