0
0
Fork 0

Revert "Add links to invoice out summary table"

This reverts commit b010f8ec3e.
This commit is contained in:
William Buezas 2024-03-05 09:18:10 -03:00
parent b010f8ec3e
commit 6969daf90f
1 changed files with 10 additions and 25 deletions

View File

@ -7,8 +7,6 @@ import { toCurrency, toDate } from 'src/filters';
import CardSummary from 'components/ui/CardSummary.vue';
import VnLv from 'src/components/ui/VnLv.vue';
import { getUrl } from 'src/composables/getUrl';
import TicketDescriptorProxy from 'src/pages/Ticket/Card/TicketDescriptorProxy.vue';
import CustomerDescriptorProxy from 'src/pages/Customer/Card/CustomerDescriptorProxy.vue';
onMounted(async () => {
fetch();
@ -69,33 +67,29 @@ const taxColumns = ref([
const ticketsColumns = ref([
{
name: 'item',
label: t('invoiceOut.summary.ticketId'),
label: 'invoiceOut.summary.ticketId',
field: (row) => row.id,
sortable: true,
align: 'left',
},
{
name: 'quantity',
label: t('invoiceOut.summary.nickname'),
label: 'invoiceOut.summary.nickname',
field: (row) => row.nickname,
sortable: true,
align: 'left',
},
{
name: 'landed',
label: t('invoiceOut.summary.shipped'),
label: 'invoiceOut.summary.shipped',
field: (row) => row.shipped,
format: (value) => toDate(value),
sortable: true,
align: 'left',
},
{
name: 'landed',
label: t('invoiceOut.summary.totalWithVat'),
label: 'invoiceOut.summary.totalWithVat',
field: (row) => row.totalWithVat,
format: (value) => toCurrency(value),
sortable: true,
align: 'left',
},
]);
</script>
@ -150,21 +144,12 @@ const ticketsColumns = ref([
{{ t('invoiceOut.summary.tickets') }}
</div>
<QTable v-if="tickets" :columns="ticketsColumns" :rows="tickets" flat>
<template #body-cell-item="{ value }">
<QTd>
<QBtn flat color="primary">
{{ value }}
<TicketDescriptorProxy :id="value" />
</QBtn>
</QTd>
</template>
<template #body-cell-quantity="{ value, row }">
<QTd>
<QBtn flat color="primary" dense>
{{ value }}
<CustomerDescriptorProxy :id="row.id" />
</QBtn>
</QTd>
<template #header="props">
<QTr :props="props">
<QTh v-for="col in props.cols" :key="col.name" :props="props">
{{ t(col.label) }}
</QTh>
</QTr>
</template>
</QTable>
</QCard>