From a9fd5894b5db528148f6d85d1321dd4a68fc6552 Mon Sep 17 00:00:00 2001 From: alexm Date: Wed, 26 Mar 2025 07:57:35 +0100 Subject: [PATCH] fix(TicketSale): refs #8449 correct router.push to /log --- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + src/pages/Ticket/Card/TicketSale.vue | 10 ++++++---- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index d0224eee5..657b142cd 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -372,6 +372,7 @@ globals: nickname: Alias changedModel: Entity changedModelValue: Search + changedModelId: Entity id userFk: User action: Action model: Model diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index 15e41bcd1..dd084f7c2 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -373,6 +373,7 @@ globals: nickname: Alias changedModel: Entidad changedModelValue: Buscar + changedModelId: Id de entidad userFk: Usuario action: Acción errors: diff --git a/src/pages/Ticket/Card/TicketSale.vue b/src/pages/Ticket/Card/TicketSale.vue index 2fb305cc3..3960243aa 100644 --- a/src/pages/Ticket/Card/TicketSale.vue +++ b/src/pages/Ticket/Card/TicketSale.vue @@ -377,10 +377,12 @@ const newOrderFromTicket = async () => { const goToLog = (saleId) => { router.push({ name: 'TicketLog', - params: { - originId: route.params.id, - changedModel: 'Sale', - changedModelId: saleId, + query: { + logs: JSON.stringify({ + originFk: route.params.id, + changedModel: 'Sale', + changedModelId: saleId, + }), }, }); };