From d4d03c160b369488301cb197d7e582252a2be1a4 Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 24 Jan 2025 13:49:39 +0100 Subject: [PATCH] fix: modified front to show new field --- src/i18n/locale/en.yml | 3 ++- src/i18n/locale/es.yml | 1 + src/pages/Ticket/Card/TicketSummary.vue | 18 ++++++------------ 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 8e458df97..cb5fd5ea5 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -1,7 +1,7 @@ globals: lang: es: Spanish - en: English + en: English language: Language quantity: Quantity entity: Entity @@ -453,6 +453,7 @@ ticket: service: Service attender: Attender ok: Ok + consigneeStreet: Street create: address: Address invoiceOut: diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index f59821f28..9649ac508 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -448,6 +448,7 @@ ticket: purchaseRequest: Petición de compra service: Servicio attender: Consignatario + consigneeStreet: Dirección create: address: Dirección order: diff --git a/src/pages/Ticket/Card/TicketSummary.vue b/src/pages/Ticket/Card/TicketSummary.vue index 2c6e34864..045176bad 100644 --- a/src/pages/Ticket/Card/TicketSummary.vue +++ b/src/pages/Ticket/Card/TicketSummary.vue @@ -48,16 +48,6 @@ onMounted(async () => { ticketUrl.value = (await getUrl('ticket/')) + entityId.value + '/'; }); -function formattedAddress() { - if (!ticket.value) return ''; - - const address = ticket.value.address; - const postcode = address.postalCode; - const province = address.province ? `(${address.province.name})` : ''; - - return `${address.street} - ${postcode} - ${address.city} ${province}`; -} - function isEditable() { try { return !ticket.value.ticketState?.state?.alertLevel; @@ -244,7 +234,11 @@ function toTicketUrl(section) { + @@ -454,7 +448,7 @@ function toTicketUrl(section) { toCurrency( props.row.quantity * props.row.price * - ((100 - props.row.discount) / 100) + ((100 - props.row.discount) / 100), ) }}