ticketComponent i18n
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Javier Segarra 2024-07-13 00:06:33 +02:00
parent fceeaea1f5
commit dbe6e86ba7
3 changed files with 21 additions and 21 deletions

View File

@ -71,39 +71,39 @@ const salesFilter = computed(() => ({
const columns = computed(() => [ const columns = computed(() => [
{ {
label: t('components.item'), label: t('ticketComponents.item'),
name: 'item', name: 'item',
align: 'left', align: 'left',
}, },
{ {
label: t('components.description'), label: t('ticketComponents.description'),
name: 'description', name: 'description',
align: 'left', align: 'left',
}, },
{ {
label: t('components.quantity'), label: t('ticketComponents.quantity'),
name: 'quantity', name: 'quantity',
field: 'quantity', field: 'quantity',
align: 'left', align: 'left',
format: (val) => dashIfEmpty(val), format: (val) => dashIfEmpty(val),
}, },
{ {
label: t('components.serie'), label: t('ticketComponents.serie'),
name: 'serie', name: 'serie',
align: 'left', align: 'left',
}, },
{ {
label: t('components.components'), label: t('ticketComponents.components'),
name: 'components', name: 'components',
align: 'left', align: 'left',
}, },
{ {
label: t('components.import'), label: t('ticketComponents.import'),
name: 'import', name: 'import',
align: 'left', align: 'left',
}, },
{ {
label: t('components.total'), label: t('ticketComponents.total'),
name: 'total', name: 'total',
align: 'left', align: 'left',
}, },
@ -184,18 +184,18 @@ onUnmounted(() => (stateStore.rightDrawer = false));
> >
<QCardSection horizontal> <QCardSection horizontal>
<span class="text-weight-bold text-subtitle1 text-center full-width"> <span class="text-weight-bold text-subtitle1 text-center full-width">
{{ t('components.total') }} {{ t('ticketComponents.total') }}
</span> </span>
</QCardSection> </QCardSection>
<QCardSection horizontal> <QCardSection horizontal>
<span class="q-mr-xs color-vn-label" <span class="q-mr-xs color-vn-label"
>{{ t('components.baseToCommission') }}: >{{ t('ticketComponents.baseToCommission') }}:
</span> </span>
<span>{{ toCurrency(getBase) }}</span> <span>{{ toCurrency(getBase) }}</span>
</QCardSection> </QCardSection>
<QCardSection horizontal> <QCardSection horizontal>
<span class="q-mr-xs color-vn-label" <span class="q-mr-xs color-vn-label"
>{{ t('components.totalWithoutVat') }}: >{{ t('ticketComponents.totalWithoutVat') }}:
</span> </span>
<span>{{ toCurrency(getTotal) }}</span> <span>{{ toCurrency(getTotal) }}</span>
</QCardSection> </QCardSection>
@ -208,7 +208,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
> >
<QCardSection horizontal> <QCardSection horizontal>
<span class="text-weight-bold text-subtitle1 text-center full-width"> <span class="text-weight-bold text-subtitle1 text-center full-width">
{{ t('components.components') }} {{ t('ticketComponents.components') }}
</span> </span>
</QCardSection> </QCardSection>
<QCardSection <QCardSection
@ -232,24 +232,24 @@ onUnmounted(() => (stateStore.rightDrawer = false));
> >
<QCardSection horizontal> <QCardSection horizontal>
<span class="text-weight-bold text-subtitle1 text-center full-width"> <span class="text-weight-bold text-subtitle1 text-center full-width">
{{ t('components.zoneBreakdown') }} {{ t('ticketComponents.zoneBreakdown') }}
</span> </span>
</QCardSection> </QCardSection>
<QCardSection horizontal> <QCardSection horizontal>
<span class="q-mr-xs color-vn-label"> <span class="q-mr-xs color-vn-label">
{{ t('components.price') }}: {{ t('ticketComponents.price') }}:
</span> </span>
<span>{{ toCurrency(ticketData?.zonePrice, 'EUR', 2) }}</span> <span>{{ toCurrency(ticketData?.zonePrice, 'EUR', 2) }}</span>
</QCardSection> </QCardSection>
<QCardSection horizontal> <QCardSection horizontal>
<span class="q-mr-xs color-vn-label"> <span class="q-mr-xs color-vn-label">
{{ t('components.bonus') }}: {{ t('ticketComponents.bonus') }}:
</span> </span>
<span>{{ toCurrency(ticketData?.zoneBonus, 'EUR', 2) }}</span> <span>{{ toCurrency(ticketData?.zoneBonus, 'EUR', 2) }}</span>
</QCardSection> </QCardSection>
<QCardSection horizontal> <QCardSection horizontal>
<span class="q-mr-xs color-vn-label"> <span class="q-mr-xs color-vn-label">
{{ t('components.zone') }}: {{ t('ticketComponents.zone') }}:
</span> </span>
<span class="link"> <span class="link">
{{ dashIfEmpty(ticketData?.zone?.name) }} {{ dashIfEmpty(ticketData?.zone?.name) }}
@ -258,13 +258,13 @@ onUnmounted(() => (stateStore.rightDrawer = false));
</QCardSection> </QCardSection>
<QCardSection v-if="ticketData?.zone?.isVolumetric" horizontal> <QCardSection v-if="ticketData?.zone?.isVolumetric" horizontal>
<span class="q-mr-xs color-vn-label"> <span class="q-mr-xs color-vn-label">
{{ t('components.volume') }}: {{ t('ticketComponents.volume') }}:
</span> </span>
<span>{{ ticketVolume }}</span> <span>{{ ticketVolume }}</span>
</QCardSection> </QCardSection>
<QCardSection horizontal> <QCardSection horizontal>
<span class="q-mr-xs color-vn-label"> <span class="q-mr-xs color-vn-label">
{{ t('components.packages') }}: {{ t('ticketComponents.packages') }}:
</span> </span>
<span>{{ dashIfEmpty(ticketData?.packages) }}</span> <span>{{ dashIfEmpty(ticketData?.packages) }}</span>
</QCardSection> </QCardSection>
@ -277,12 +277,12 @@ onUnmounted(() => (stateStore.rightDrawer = false));
> >
<QCardSection horizontal> <QCardSection horizontal>
<span class="text-weight-bold text-subtitle1 text-center full-width"> <span class="text-weight-bold text-subtitle1 text-center full-width">
{{ t('components.theoricalCost') }} {{ t('ticketComponents.theoricalCost') }}
</span> </span>
</QCardSection> </QCardSection>
<QCardSection horizontal> <QCardSection horizontal>
<span class="q-mr-xs color-vn-label"> <span class="q-mr-xs color-vn-label">
{{ t('components.totalPrice') }}: {{ t('ticketComponents.totalPrice') }}:
</span> </span>
<span>{{ toCurrency(theoricalCost, 'EUR', 2) }}</span> <span>{{ toCurrency(theoricalCost, 'EUR', 2) }}</span>
</QCardSection> </QCardSection>

View File

@ -178,7 +178,7 @@ service:
addService: Add service addService: Add service
quantityInfo: To create services with negative amounts mark the service on the source ticket and press the pay button. quantityInfo: To create services with negative amounts mark the service on the source ticket and press the pay button.
createRefundSuccess: 'The following refund ticket have been created: { ticketId }' createRefundSuccess: 'The following refund ticket have been created: { ticketId }'
components: ticketComponents:
item: Item item: Item
description: Description description: Description
quantity: Quantity quantity: Quantity

View File

@ -164,7 +164,7 @@ ticketSale:
shipped: F. Envío shipped: F. Envío
agency: Agencia agency: Agencia
address: Consignatario address: Consignatario
components: ticketComponents:
item: Artículo item: Artículo
description: Descripción description: Descripción
quantity: Cantidad quantity: Cantidad