Added Archiving

This commit is contained in:
2025-01-17 11:27:18 +01:00
parent b40553cc54
commit 57c0f81263
2 changed files with 4 additions and 4 deletions

View File

@@ -910,7 +910,7 @@ const setRowData = (row) => {
<template> <template>
<UDashboardNavbar> <UDashboardNavbar>
<template #right> <template #right>
<!-- <ButtonWithConfirm <ButtonWithConfirm
v-if="itemInfo.state === 'Entwurf'" v-if="itemInfo.state === 'Entwurf'"
color="rose" color="rose"
variant="outline" variant="outline"
@@ -921,10 +921,10 @@ const setRowData = (row) => {
Archivieren Archivieren
</template> </template>
<template #header> <template #header>
<span class="text-md text-black font-bold">Archivieren bestätigen</span> <span class="text-md dark:text-whitetext-black font-bold">Archivieren bestätigen</span>
</template> </template>
Möchten Sie diesen Ausgangsbeleg wirklich archivieren? Möchten Sie diesen Ausgangsbeleg wirklich archivieren?
</ButtonWithConfirm>--> </ButtonWithConfirm>
<UButton <UButton
icon="i-mdi-content-save" icon="i-mdi-content-save"
@click="saveDocument('Entwurf',true)" @click="saveDocument('Entwurf',true)"

View File

@@ -162,7 +162,7 @@ const items = ref([])
const selectedItem = ref(0) const selectedItem = ref(0)
const setupPage = async () => { const setupPage = async () => {
items.value = await useSupabaseSelect("createddocuments","*, customer(id,name), statementallocations(id,amount)","documentNumber") items.value = (await useSupabaseSelect("createddocuments","*, customer(id,name), statementallocations(id,amount)","documentNumber")).filter(i => !i.archived)
} }
setupPage() setupPage()