Added Archiving to Created Documents

This commit is contained in:
2025-09-13 16:32:37 +02:00
parent cf42caa519
commit 9fad0eafd0

View File

@@ -1512,11 +1512,11 @@ const setRowData = async (row, service = {sellingPriceComposed: {}}, product = {
</template>
<template #right>
<ButtonWithConfirm
v-if="itemInfo.state === 'Entwurf'"
v-if="itemInfo.state === 'Entwurf' || itemInfo.type === 'serialInvoices'"
color="rose"
variant="outline"
@confirmed="dataStore.updateItem('createddocuments',{id:itemInfo.id,archived: true}),
router.push('/createDocument')"
@confirmed="useEntities('createddocuments').update(itemInfo.id,{archived: true}),
router.push('/')"
>
<template #button>
Archivieren