From 73b7fa7704eff4dbd3b95bca8d37294eafb19efc Mon Sep 17 00:00:00 2001 From: jorgep Date: Tue, 19 Nov 2024 15:43:55 +0100 Subject: [PATCH] feat: refs #8166 show notification --- src/pages/Ticket/TicketAdvance.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/Ticket/TicketAdvance.vue b/src/pages/Ticket/TicketAdvance.vue index c247a20bc..71e3926ac 100644 --- a/src/pages/Ticket/TicketAdvance.vue +++ b/src/pages/Ticket/TicketAdvance.vue @@ -213,7 +213,10 @@ const requestComponentUpdate = async (ticket, isWithoutNegatives) => { warehouseFk: ticket.futureWarehouseFk, }); - if (!newLanded) throw new Error(t('advanceTickets.noDeliveryZone')); + if (!newLanded) { + notify(t('advanceTickets.noDeliveryZone'), 'negative'); + throw new Error(t('advanceTickets.noDeliveryZone')); + } ticket.landed = newLanded.landed; ticket.zoneFk = newLanded.zoneFk;