From 4ae55a49564b6a3a27d3c66da7e2ef8976f9fada Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Tue, 16 Sep 2025 18:29:20 +0200 Subject: [PATCH] Fixed Createddocuments in Projects Fixed FinalInvoices --- components/EntityShowSubCreatedDocuments.vue | 2 +- pages/createDocument/edit/[[id]].vue | 3 ++- pages/support/create.vue | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/components/EntityShowSubCreatedDocuments.vue b/components/EntityShowSubCreatedDocuments.vue index 751b406..f4bf6f6 100644 --- a/components/EntityShowSubCreatedDocuments.vue +++ b/components/EntityShowSubCreatedDocuments.vue @@ -181,7 +181,7 @@ const selectItem = (item) => { + Schlussrechnung diff --git a/pages/createDocument/edit/[[id]].vue b/pages/createDocument/edit/[[id]].vue index 918ecb1..d911afe 100644 --- a/pages/createDocument/edit/[[id]].vue +++ b/pages/createDocument/edit/[[id]].vue @@ -202,7 +202,8 @@ const setupPage = async () => { } } else if (route.query.loadMode === "finalInvoice") { - let linkedDocuments = (await supabase.from("createddocuments").select().in("id", JSON.parse(route.query.linkedDocuments))).data + let linkedDocuments = (await useEntities("createddocuments").select()).filter(i => JSON.parse(route.query.linkedDocuments).includes(i.id)) + //let linkedDocuments = (await supabase.from("createddocuments").select().in("id", JSON.parse(route.query.linkedDocuments))).data //TODO: Implement Checking for Same Customer, Contact and Project diff --git a/pages/support/create.vue b/pages/support/create.vue index 19b99f1..31466ee 100644 --- a/pages/support/create.vue +++ b/pages/support/create.vue @@ -33,7 +33,7 @@ const createTicket = async () => { console.log(messageError) } else { console.log(ticketData) - useFunctions().useSendTelegramNotification(`Ticket von ${profileStore.activeProfile.fullName} erstellt : ${itemInfo.value.content}`) + //useFunctions().useSendTelegramNotification(`Ticket von ${profileStore.activeProfile.fullName} erstellt : ${itemInfo.value.content}`) router.push(`/support/${ticketData.id}`) } }