refs #6416 feat: USe VnTable summary
This commit is contained in:
parent
5e50fe3ac1
commit
caa4baff8a
|
@ -329,19 +329,14 @@ function setData(entity) {
|
|||
<VnCardSection :title="'invoiceIn.card.vat'"> </VnCardSection>
|
||||
</template>
|
||||
<template #body>
|
||||
<VnTable :columns="vatColumns" :rows="invoiceIn.invoiceInTax">
|
||||
<template #bottom-row>
|
||||
<QTr class="bg">
|
||||
<QTd></QTd>
|
||||
<QTd>{{
|
||||
toCurrency(invoiceIn.totals.totalTaxableBase)
|
||||
}}</QTd>
|
||||
<QTd></QTd>
|
||||
<QTd></QTd>
|
||||
<QTd></QTd>
|
||||
<QTd></QTd>
|
||||
</QTr>
|
||||
</template>
|
||||
<VnTable
|
||||
:columns="vatColumns"
|
||||
:rows="invoiceIn.invoiceInTax"
|
||||
:has-summary="true"
|
||||
:summary="{
|
||||
landed: toCurrency(invoiceIn.totals.totalTaxableBase),
|
||||
}"
|
||||
>
|
||||
</VnTable>
|
||||
</template>
|
||||
</VnCard>
|
||||
|
@ -351,15 +346,12 @@ function setData(entity) {
|
|||
<VnCardSection :title="'invoiceIn.card.dueDay'"> </VnCardSection>
|
||||
</template>
|
||||
<template #body
|
||||
><VnTable :columns="dueDayColumns" :rows="invoiceIn.invoiceInDueDay">
|
||||
<template #bottom-row>
|
||||
<QTr class="bg">
|
||||
<QTd></QTd>
|
||||
<QTd></QTd>
|
||||
<QTd>{{ toCurrency(invoiceIn.totals.totalDueDay) }}</QTd>
|
||||
<QTd></QTd>
|
||||
</QTr>
|
||||
</template>
|
||||
><VnTable
|
||||
:columns="dueDayColumns"
|
||||
:rows="invoiceIn.invoiceInDueDay"
|
||||
:has-summary="true"
|
||||
:summary="{ amount: toCurrency(invoiceIn.totals.totalDueDay) }"
|
||||
>
|
||||
</VnTable>
|
||||
</template>
|
||||
</VnCard>
|
||||
|
@ -372,16 +364,13 @@ function setData(entity) {
|
|||
><VnTable
|
||||
:columns="intrastatColumns"
|
||||
: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>
|
||||
</template>
|
||||
</VnCard>
|
||||
|
|
Loading…
Reference in New Issue