feat: refs #8395 added total column in invoiceInVat
gitea/salix-front/pipeline/pr-dev Build queued... Details

This commit is contained in:
PAU ROVIRA ROSALENY 2025-01-17 14:08:36 +01:00
parent 4b9453380a
commit 57804f9f2d
1 changed files with 18 additions and 9 deletions

View File

@ -89,6 +89,12 @@ const columns = computed(() => [
field: (row) => row.foreignValue, field: (row) => row.foreignValue,
align: 'left', align: 'left',
}, },
{
name: 'total',
label: t('Total'),
sortable: true,
align: 'left',
},
]); ]);
const filter = { const filter = {
@ -277,19 +283,22 @@ function autocompleteExpense(evt, row, col) {
<QTd> <QTd>
{{ {{
getTotal(rows, null, { cb: taxRate, currency: 'default' }) getTotal(rows, null, { cb: taxRate, currency: 'default' })
}}</QTd }}
> </QTd>
<QTd />
<QTd> <QTd>
<template v-if="isNotEuro(invoiceIn.currency.code)">
{{ {{
getTotal(rows, 'foreignValue', { getTotal(rows, null, {
currency: invoiceIn.currency.code, cb: (row) =>
parseFloat(row.taxableBase || 0) +
parseFloat(taxRate(row) || 0),
currency: 'default',
}) })
}} }}
</template>
</QTd> </QTd>
</QTr> </QTr>
</template> </template>
<template #item="props"> <template #item="props">
<div class="q-pa-xs col-xs-12 col-sm-6 grid-style-transition"> <div class="q-pa-xs col-xs-12 col-sm-6 grid-style-transition">
<QCard bordered flat class="q-my-xs"> <QCard bordered flat class="q-my-xs">