8144-devToTest_2444 #852

Merged
carlossa merged 86 commits from 8144-devToTest_2444 into test 2024-10-22 08:55:44 +00:00
1 changed files with 13 additions and 3 deletions
Showing only changes of commit 6d5a8cba6f - Show all commits

View File

@ -6,7 +6,7 @@ import { useRoute, useRouter } from 'vue-router';
import { date } from 'quasar';
import { toDateFormat } from 'src/filters/date.js';
import { toCurrency } from 'src/filters';
import { dashIfEmpty, toCurrency } from 'src/filters';
import { useSummaryDialog } from 'src/composables/useSummaryDialog';
import TicketSummary from 'src/pages/Ticket/Card/TicketSummary.vue';
@ -101,8 +101,6 @@ const columns = computed(() => [
align: 'left',
name: 'itemPackingTypeFk',
label: t('ticketSale.packaging'),
format: (row, dashIfEmpty) =>
dashIfEmpty(row?.ticketSales[0]?.item.itemPackingTypeFk),
},
{
align: 'right',
@ -221,6 +219,18 @@ const setShippedColor = (date) => {
</QBadge>
<span v-else> {{ toDateFormat(row.shipped) }}</span>
</template>
<template #column-itemPackingTypeFk="{ row }">
<span>
{{
dashIfEmpty(
row?.ticketSales
.map((sale) => sale.item?.itemPackingTypeFk || '-')
.filter((value) => value !== '-')
.join(', ')
)
}}
</span>
</template>
</VnTable>
</template>