Corrected

This commit is contained in:
2025-01-03 10:50:20 +01:00
parent cae33c92c9
commit 159b77334b
2 changed files with 4 additions and 4 deletions

View File

@@ -443,7 +443,7 @@ const getAvailableQueryStringData = () => {
<UTable
:rows="props.item.createddocuments"
:columns="[{key:'state',label: 'Status'},{key:'documentNumber',label: 'Nummer'},{key:'documentDate',label: 'Datum'},{key:'type',label: 'Typ'}]"
:columns="[{key:'state',label: 'Status'},{key:'type',label: 'Typ'},{key:'documentNumber',label: 'Nummer'},{key:'documentDate',label: 'Datum'}]"
@select="(i) => router.push(i.state === 'Entwurf' ? `/createDocument/edit/${i.id}`:`/createDocument/show/${i.id}`)"
>
<template #documentDate-data="{row}">

View File

@@ -880,9 +880,9 @@ const setRowData = (row) => {
}
if(row.product) {
row.unit = services.value.find(i => i.id === row.service).unit
row.price = services.value.find(i => i.id === row.service).sellingPriceComposed.total || services.value.find(i => i.id === row.service).sellingPrice
row.description = services.value.find(i => i.id === row.service).description
row.unit = products.value.find(i => i.id === row.product).unit
row.price = products.value.find(i => i.id === row.product).sellingPriceComposed.total || products.value.find(i => i.id === row.product).sellingPrice
row.description = products.value.find(i => i.id === row.product).description
}