Added Contract Column
This commit is contained in:
@@ -113,6 +113,9 @@
|
||||
<span v-if="row.serialConfig.active" class="text-primary">Ja</span>
|
||||
<span v-else class="text-rose-600">Nein</span>
|
||||
</template>
|
||||
<template #contract-data="{row}">
|
||||
<span v-if="row.contract">{{row.contract.contractNumber}} - {{row.contract.name}}</span>
|
||||
</template>
|
||||
</UTable>
|
||||
|
||||
</template>
|
||||
@@ -126,7 +129,7 @@ const items = ref([])
|
||||
const selectedItem = ref(0)
|
||||
|
||||
const setupPage = async () => {
|
||||
items.value = await useEntities("createddocuments").select("*, customer(id,name)","documentDate",undefined,true)
|
||||
items.value = await useEntities("createddocuments").select("*, customer(id,name), contract(id,name, contractNumber)","documentDate",undefined,true)
|
||||
}
|
||||
|
||||
const searchString = ref("")
|
||||
@@ -172,6 +175,10 @@ const templateColumns = [
|
||||
key: 'partner',
|
||||
label: "Kunde"
|
||||
},
|
||||
{
|
||||
key: 'contract',
|
||||
label: "Vertrag"
|
||||
},
|
||||
{
|
||||
key: 'serialConfig.active',
|
||||
label: "Aktiv"
|
||||
|
||||
Reference in New Issue
Block a user