Merge branch 'test' of https://gitea.verdnatura.es/verdnatura/salix-front into dev
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2024-11-19 07:56:04 +01:00
commit afaf2df2ee
4 changed files with 15 additions and 5 deletions

View File

@ -166,6 +166,7 @@ onMounted(() => {
:expr-builder="exprBuilder" :expr-builder="exprBuilder"
:custom-tags="['tagGroups', 'categoryFk']" :custom-tags="['tagGroups', 'categoryFk']"
:redirect="false" :redirect="false"
search-url="params"
> >
<template #tags="{ tag, formatFn }"> <template #tags="{ tag, formatFn }">
<strong v-if="tag.label === 'typeFk'"> <strong v-if="tag.label === 'typeFk'">

View File

@ -111,6 +111,7 @@ const columns = computed(() => [
component: 'select', component: 'select',
attrs: { attrs: {
url: 'Items', url: 'Items',
sortBy: 'name ASC ',
fields: ['id', 'name', 'subName'], fields: ['id', 'name', 'subName'],
}, },
columnField: { columnField: {

View File

@ -94,25 +94,32 @@ const columns = computed(() => [
}, },
{ {
align: 'left', align: 'left',
label: t('ticketList.id'), label: t('globals.id'),
name: 'itemFk', name: 'itemFk',
}, },
{ {
align: 'left', align: 'left',
label: t('basicData.quantity'), label: t('globals.quantity'),
name: 'quantity', name: 'quantity',
format: (row) => toCurrency(row.quantity), format: (row) => toCurrency(row.quantity),
}, },
{ {
align: 'left', align: 'left',
label: t('basicData.item'), label: t('globals.item'),
name: 'item', name: 'item',
format: (row) => row?.item?.name, format: (row) => row?.item?.name,
columnClass: 'expand', columnClass: 'expand',
}, },
{ {
align: 'left', align: 'left',
label: t('basicData.price'), label: t('globals.size'),
name: 'size',
format: (row) => row?.item?.size,
columnClass: 'expand',
},
{
align: 'left',
label: t('globals.price'),
name: 'price', name: 'price',
format: (row) => toCurrency(row.price), format: (row) => toCurrency(row.price),
}, },
@ -124,7 +131,7 @@ const columns = computed(() => [
}, },
{ {
align: 'left', align: 'left',
label: t('ticketList.amount'), label: t('globals.amount'),
name: 'amount', name: 'amount',
format: (row) => parseInt(row.amount * row.quantity), format: (row) => parseInt(row.amount * row.quantity),
}, },

View File

@ -138,6 +138,7 @@ ticketSale:
ok: Ok ok: Ok
more: Más more: Más
address: Consignatario address: Consignatario
size: Medida
ticketComponents: ticketComponents:
serie: Serie serie: Serie
components: Componentes components: Componentes