refs #6416 feat: USe VnTable summary

This commit is contained in:
Javier Segarra 2023-11-10 09:57:42 +01:00
parent 5e50fe3ac1
commit caa4baff8a
1 changed files with 20 additions and 31 deletions

View File

@ -329,19 +329,14 @@ function setData(entity) {
<VnCardSection :title="'invoiceIn.card.vat'"> </VnCardSection> <VnCardSection :title="'invoiceIn.card.vat'"> </VnCardSection>
</template> </template>
<template #body> <template #body>
<VnTable :columns="vatColumns" :rows="invoiceIn.invoiceInTax"> <VnTable
<template #bottom-row> :columns="vatColumns"
<QTr class="bg"> :rows="invoiceIn.invoiceInTax"
<QTd></QTd> :has-summary="true"
<QTd>{{ :summary="{
toCurrency(invoiceIn.totals.totalTaxableBase) landed: toCurrency(invoiceIn.totals.totalTaxableBase),
}}</QTd> }"
<QTd></QTd> >
<QTd></QTd>
<QTd></QTd>
<QTd></QTd>
</QTr>
</template>
</VnTable> </VnTable>
</template> </template>
</VnCard> </VnCard>
@ -351,15 +346,12 @@ function setData(entity) {
<VnCardSection :title="'invoiceIn.card.dueDay'"> </VnCardSection> <VnCardSection :title="'invoiceIn.card.dueDay'"> </VnCardSection>
</template> </template>
<template #body <template #body
><VnTable :columns="dueDayColumns" :rows="invoiceIn.invoiceInDueDay"> ><VnTable
<template #bottom-row> :columns="dueDayColumns"
<QTr class="bg"> :rows="invoiceIn.invoiceInDueDay"
<QTd></QTd> :has-summary="true"
<QTd></QTd> :summary="{ amount: toCurrency(invoiceIn.totals.totalDueDay) }"
<QTd>{{ toCurrency(invoiceIn.totals.totalDueDay) }}</QTd> >
<QTd></QTd>
</QTr>
</template>
</VnTable> </VnTable>
</template> </template>
</VnCard> </VnCard>
@ -372,16 +364,13 @@ function setData(entity) {
><VnTable ><VnTable
:columns="intrastatColumns" :columns="intrastatColumns"
:rows="invoiceIn.invoiceInIntrastat" :rows="invoiceIn.invoiceInIntrastat"
:has-summary="true"
:summary="{
amount: toCurrency(intrastatTotals.amount),
net: intrastatTotals.net,
stems: intrastatTotals.stems,
}"
> >
<template #bottom-row>
<QTr class="bg">
<QTd></QTd>
<QTd>{{ toCurrency(intrastatTotals.amount) }}</QTd>
<QTd>{{ intrastatTotals.net }}</QTd>
<QTd>{{ intrastatTotals.stems }}</QTd>
<QTd></QTd>
</QTr>
</template>
</VnTable> </VnTable>
</template> </template>
</VnCard> </VnCard>