Fix Serialinvoice table

This commit is contained in:
2025-12-27 13:04:02 +01:00
parent d5999bfb20
commit 240264aafb

View File

@@ -63,26 +63,6 @@
<template #type-data="{row}"> <template #type-data="{row}">
{{dataStore.documentTypesForCreation[row.type].labelSingle}} {{dataStore.documentTypesForCreation[row.type].labelSingle}}
</template> </template>
<template #state-data="{row}">
<span
v-if="row.state === 'Entwurf'"
class="text-rose-500"
>
{{row.state}}
</span>
<span
v-if="row.state === 'Gebucht'"
class="text-cyan-500"
>
{{row.state}}
</span>
<span
v-if="row.state === 'Abgeschlossen'"
class="text-primary-500"
>
{{row.state}}
</span>
</template>
<template #partner-data="{row}"> <template #partner-data="{row}">
<span v-if="row.customer">{{row.customer ? row.customer.name : ""}}</span> <span v-if="row.customer">{{row.customer ? row.customer.name : ""}}</span>
@@ -114,6 +94,10 @@
<template #contract-data="{row}"> <template #contract-data="{row}">
<span v-if="row.contract">{{row.contract.contractNumber}} - {{row.contract.name}}</span> <span v-if="row.contract">{{row.contract.contractNumber}} - {{row.contract.name}}</span>
</template> </template>
<template #serialConfig.intervall-data="{row}">
<span v-if="row.serialConfig?.intervall === 'monatlich'">Monatlich</span>
<span v-if="row.serialConfig?.intervall === 'vierteljährlich'">Quartalsweise</span>
</template>
</UTable> </UTable>
</template> </template>
@@ -159,13 +143,9 @@ const filteredRows = computed(() => {
const templateColumns = [ const templateColumns = [
{ {
key: 'type', key: 'serialConfig.active',
label: "Typ" label: "Aktiv"
},{ },{
key: 'state',
label: "Status"
},
{
key: "amount", key: "amount",
label: "Betrag" label: "Betrag"
}, },
@@ -178,8 +158,8 @@ const templateColumns = [
label: "Vertrag" label: "Vertrag"
}, },
{ {
key: 'serialConfig.active', key: 'serialConfig.intervall',
label: "Aktiv" label: "Rhythmus"
} }
] ]
const selectedColumns = ref(templateColumns) const selectedColumns = ref(templateColumns)