Added navigate to archive in use entities
added archiving in incoming invoices
This commit is contained in:
@@ -128,7 +128,10 @@ export const useEntities = (
|
|||||||
method: "PUT",
|
method: "PUT",
|
||||||
body: { archived: true }
|
body: { archived: true }
|
||||||
})
|
})
|
||||||
|
navigateTo(dataType.isStandardEntity ? `/standardEntity/${relation}` : `/${relation}`)
|
||||||
|
|
||||||
return res
|
return res
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return {select, create, update, archive, selectSingle, selectSpecial}
|
return {select, create, update, archive, selectSingle, selectSpecial}
|
||||||
|
|||||||
@@ -170,6 +170,19 @@ const findIncomingInvoiceErrors = computed(() => {
|
|||||||
<template>
|
<template>
|
||||||
<UDashboardNavbar :title="'Eingangsbeleg erstellen'">
|
<UDashboardNavbar :title="'Eingangsbeleg erstellen'">
|
||||||
<template #right>
|
<template #right>
|
||||||
|
<ButtonWithConfirm
|
||||||
|
color="rose"
|
||||||
|
variant="outline"
|
||||||
|
@confirmed="useEntities('incominginvoices').archive(route.params.id)"
|
||||||
|
>
|
||||||
|
<template #button>
|
||||||
|
Archivieren
|
||||||
|
</template>
|
||||||
|
<template #header>
|
||||||
|
<span class="text-md text-black font-bold">Archivieren bestätigen</span>
|
||||||
|
</template>
|
||||||
|
Möchten Sie den Eingangsbeleg wirklich archivieren?
|
||||||
|
</ButtonWithConfirm>
|
||||||
<UButton
|
<UButton
|
||||||
@click="updateIncomingInvoice(false)"
|
@click="updateIncomingInvoice(false)"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user