From 02330e2173e1227bac8d52e849605a6d504f46be Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Mon, 6 Oct 2025 15:47:53 +0200 Subject: [PATCH 1/3] Fix TaxType --- pages/createDocument/edit/[[id]].vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/createDocument/edit/[[id]].vue b/pages/createDocument/edit/[[id]].vue index a38f014..12259c8 100644 --- a/pages/createDocument/edit/[[id]].vue +++ b/pages/createDocument/edit/[[id]].vue @@ -439,6 +439,10 @@ const setTaxType = () => { itemInfo.value.rows.forEach(row => { row.taxPercent = 0 }) + } else if (itemInfo.value.taxType === "13b UStG") { + itemInfo.value.rows.forEach(row => { + row.taxPercent = 0 + }) } else if (itemInfo.value.taxType === "12.3 UStG") { itemInfo.value.rows.forEach(row => { row.taxPercent = 0 From 4054d1acf8208fbb287a1e2da9266f1281dc23d9 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Mon, 6 Oct 2025 15:49:23 +0200 Subject: [PATCH 2/3] Fix Change Phase --- components/EntityShowSubPhases.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/components/EntityShowSubPhases.vue b/components/EntityShowSubPhases.vue index 4e766be..ede77f7 100644 --- a/components/EntityShowSubPhases.vue +++ b/components/EntityShowSubPhases.vue @@ -58,7 +58,7 @@ const renderedPhases = computed(() => { }) const changeActivePhase = async (key) => { - let item = await useSupabaseSelectSingle("projects",props.item.id,'*') + let item = await useEntities("projects").selectSingle(props.item.id,'*') let phaseLabel = "" @@ -75,16 +75,18 @@ const changeActivePhase = async (key) => { return p }) - const {error:updateError} = await supabase.from("projects").update({phases: item.phases}).eq("id",item.id) + const res = await useEntities("projects").update(item.id, {phases:item.phases}) + + //const {error:updateError} = await supabase.from("projects").update({phases: item.phases}).eq("id",item.id) - const {error} = await supabase.from("historyitems").insert({ + /*const {error} = await supabase.from("historyitems").insert({ createdBy: profileStore.activeProfile.id, tenant: profileStore.currentTenant, text: `Aktive Phase zu "${phaseLabel}" gewechselt`, project: item.id - }) + })*/ emit("updateNeeded") From 39820d7122bdb7cf95820dd990e46404c5799c4b Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Mon, 6 Oct 2025 15:51:40 +0200 Subject: [PATCH 3/3] Fix Composing --- components/materialComposing.vue | 6 ++---- components/personalComposing.vue | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/components/materialComposing.vue b/components/materialComposing.vue index 3d21a09..b3c802a 100644 --- a/components/materialComposing.vue +++ b/components/materialComposing.vue @@ -2,8 +2,6 @@ import { v4 as uuidv4 } from 'uuid'; -const supabase = useSupabaseClient() - const props = defineProps({ item: { type: Object, @@ -15,8 +13,8 @@ const products = ref([]) const units = ref([]) const setup = async () => { - products.value = await useSupabaseSelect("products") - units.value = (await supabase.from("units").select()).data + products.value = await useEntities("products").select() + units.value = await useEntities("units").selectSpecial() } setup() diff --git a/components/personalComposing.vue b/components/personalComposing.vue index 7cb27f5..4873b4d 100644 --- a/components/personalComposing.vue +++ b/components/personalComposing.vue @@ -15,8 +15,8 @@ const hourrates = ref([]) const units = ref([]) const setup = async () => { - hourrates.value = await useSupabaseSelect("hourrates") - units.value = (await supabase.from("units").select()).data + hourrates.value = await useEntities("hourrates").select() + units.value = await useEntities("units").selectSpecial() } setup()