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