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