From 6f6754db39145dcbf6b48ee33b923315755df2b7 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Tue, 20 May 2025 16:24:02 +0200 Subject: [PATCH] =?UTF-8?q?Rechnungs=20E-Mail=20Adresse=20zu=20Kunden=20hi?= =?UTF-8?q?nzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/email/new.vue | 2 ++ stores/data.js | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/pages/email/new.vue b/pages/email/new.vue index 95e00b7..3136eb8 100644 --- a/pages/email/new.vue +++ b/pages/email/new.vue @@ -57,6 +57,8 @@ const setupPage = async () => { if(loadedDocuments.value[0].createddocument.contact && loadedDocuments.value[0].createddocument.contact.email) { console.log("Contact") emailData.value.to = loadedDocuments.value[0].createddocument.contact.email + } else if(loadedDocuments.value[0].createddocument.customer && loadedDocuments.value[0].createddocument.customer.infoData.invoiceEmail) { + emailData.value.to = loadedDocuments.value[0].createddocument.customer.infoData.invoiceEmail } else if(loadedDocuments.value[0].createddocument.customer && loadedDocuments.value[0].createddocument.customer.infoData.email) { emailData.value.to = loadedDocuments.value[0].createddocument.customer.infoData.email } diff --git a/stores/data.js b/stores/data.js index 82deea1..f640f3d 100644 --- a/stores/data.js +++ b/stores/data.js @@ -345,6 +345,11 @@ export const useDataStore = defineStore('data', () => { label: "E-Mail", inputType: "text" }, + { + key: "infoData.invoiceEmail", + label: "E-Mail für Rechnungen", + inputType: "text" + }, { key: "infoData.web", label: "Web",