Added Archiving
This commit is contained in:
@@ -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)"
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user