Corrected
This commit is contained in:
@@ -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}">
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user