From 4514627ec0d59ad62a0fbfe08d9d253188fd7cba Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Thu, 9 Oct 2025 18:29:07 +0200 Subject: [PATCH 1/2] Fixed Wrong Bic Key --- stores/data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From 59c32ef8d8dfd62b45683096c394c61b3f867622 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Thu, 9 Oct 2025 18:29:24 +0200 Subject: [PATCH 2/2] Fixed Load of existing Doc without Created_by --- pages/createDocument/edit/[[id]].vue | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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)