Added ArchiveButton.vue

This commit is contained in:
2025-09-24 19:43:04 +02:00
parent 4a05bd5bc3
commit dd2bf7a8ff
6 changed files with 92 additions and 53 deletions

View File

@@ -1523,21 +1523,14 @@ const setRowData = async (row, service = {sellingPriceComposed: {}}, product = {
</UButton>
</template>
<template #right>
<ButtonWithConfirm
v-if="itemInfo.state === 'Entwurf' || itemInfo.type === 'serialInvoices'"
<ArchiveButton
color="rose"
type="createddocuments"
v-if="itemInfo.state === 'Entwurf' || itemInfo.type === 'serialInvoices'"
variant="outline"
@confirmed="useEntities('createddocuments').update(itemInfo.id,{archived: true}),
router.push('/')"
>
<template #button>
Archivieren
</template>
<template #header>
<span class="text-md dark:text-whitetext-black font-bold">Archivieren bestätigen</span>
</template>
Möchten Sie diesen Ausgangsbeleg wirklich archivieren?
</ButtonWithConfirm>
/>
<UButton
icon="i-mdi-content-save"
@click="saveDocument('Entwurf',true)"