0
0
Fork 0

ticketComponent i18n

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

View File

@ -178,7 +178,7 @@ service:
addService: Add service
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 }'
components:
ticketComponents:
item: Item
description: Description
quantity: Quantity

View File

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