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>
<UDashboardNavbar>
<template #right>
<!-- <ButtonWithConfirm
<ButtonWithConfirm
v-if="itemInfo.state === 'Entwurf'"
color="rose"
variant="outline"
@@ -921,10 +921,10 @@ const setRowData = (row) => {
Archivieren
</template>
<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>
Möchten Sie diesen Ausgangsbeleg wirklich archivieren?
</ButtonWithConfirm>-->
</ButtonWithConfirm>
<UButton
icon="i-mdi-content-save"
@click="saveDocument('Entwurf',true)"

View File

@@ -162,7 +162,7 @@ const items = ref([])
const selectedItem = ref(0)
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()