Many Changes

This commit is contained in:
2024-01-04 12:27:46 +01:00
parent 57e856c71c
commit 991cac18f2
31 changed files with 1504 additions and 297 deletions

View File

@@ -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('')