Added Buttons for all connected Documents

This commit is contained in:
2025-12-09 11:41:21 +01:00
parent 76941abbf2
commit 8b70b77b85

View File

@@ -105,12 +105,21 @@ const openBankstatements = () => {
Kunde
</UButton>
<UButton
v-if="itemInfo.linkedDocument"
@click="router.push(`/standardEntity/createDocument/show/${itemInfo.linkedDocument}`)"
v-if="itemInfo.createddocument"
@click="router.push(`/createDocument/show/${itemInfo.createddocument}`)"
icon="i-heroicons-link"
variant="outline"
>
{{dataStore.documentTypesForCreation[itemInfo.linkedDocument.type].labelSingle}} - {{itemInfo.linkedDocument.documentNumber}}
{{dataStore.documentTypesForCreation[itemInfo.createddocument.type].labelSingle}} - {{itemInfo.createddocument.documentNumber}}
</UButton>
<UButton
v-for="item in itemInfo.createddocuments"
v-if="itemInfo.createddocuments"
@click="router.push(`/createDocument/show/${item.id}`)"
icon="i-heroicons-link"
variant="outline"
>
{{dataStore.documentTypesForCreation[item.type].labelSingle}} - {{item.documentNumber}}
</UButton>
<UButton
v-if="itemInfo.statementallocations?.length > 0"