0
0
Fork 0

refactor: refs #6942 WIP summary layout

This commit is contained in:
Jorge Penadés 2024-05-28 11:39:49 +02:00
parent 3c0936b2ef
commit 5aa3b14014
1 changed files with 18 additions and 7 deletions

View File

@ -65,7 +65,7 @@ const vatColumns = ref([
field: (row) => taxRate(row.taxableBase, row.taxTypeSage?.rate),
format: (value) => toCurrency(value, currency.value),
sortable: true,
align: 'left',
align: 'center',
},
{
name: 'currency',
@ -319,7 +319,7 @@ const getLink = (param) => `#/invoice-in/${entityId.value}/${param}`;
</QCardSection>
</QCard>
<!--Vat-->
<QCard v-if="entity.invoiceInTax.length" class="vat" auto-width>
<QCard v-if="entity.invoiceInTax.length" class="vat">
<VnTitle :url="getLink('vat')" :text="t('invoiceIn.card.vat')" />
<QTable
:columns="vatColumns"
@ -423,13 +423,24 @@ const getLink = (param) => `#/invoice-in/${entityId.value}/${param}`;
}
@media (min-width: $breakpoint-md) {
.summaryBody {
.q-card {
&.vat {
flex: 65%;
.vat {
flex: 65%;
table th {
&:nth-child(5) {
padding: 0;
}
&:last-child {
padding: 0;
}
}
}
&.due-day {
flex: 30%;
.due-day {
flex: 30%;
table th {
&:last-child {
padding: 0;
}
}
}
}