Many Changes
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
{{row.dueDate ? dayjs(row.dueDate).format("DD.MM.YY") : ''}}
|
||||
</template>
|
||||
<template #amount-data="{row}">
|
||||
{{row.amount ? row.amount.toFixed(2) + ' €' : ''}}
|
||||
{{getRowAmount(row) === 0 ? '' : `${getRowAmount(row)} €`}}
|
||||
</template>
|
||||
</UTable>
|
||||
|
||||
@@ -101,6 +101,17 @@ const selectItem = (item) => {
|
||||
router.push(`/vendorinvoices/edit/${item.id} `)
|
||||
}
|
||||
|
||||
const getRowAmount = (row) => {
|
||||
let amount = 0
|
||||
|
||||
row.accounts.forEach(account => {
|
||||
amount += account.amountNet
|
||||
amount += account.amountTax
|
||||
})
|
||||
|
||||
return amount
|
||||
}
|
||||
|
||||
|
||||
const searchString = ref('')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user