From 8182bf7b91a12de1740a2bec79ce57de3b637d0a Mon Sep 17 00:00:00 2001 From: robert Date: Thu, 16 Jan 2025 07:29:37 +0100 Subject: [PATCH] feat: refs #8398 modify previous changes --- src/pages/Ticket/TicketAdvance.vue | 4 +--- src/pages/Ticket/TicketFuture.vue | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/pages/Ticket/TicketAdvance.vue b/src/pages/Ticket/TicketAdvance.vue index 12e94d197..05bd14075 100644 --- a/src/pages/Ticket/TicketAdvance.vue +++ b/src/pages/Ticket/TicketAdvance.vue @@ -254,16 +254,14 @@ const moveTicketsAdvance = async () => { } continue; } - console.log('ticket: ', ticket); ticketsToMove.push({ originId: ticket.futureId, destinationId: ticket.id, originShipped: ticket.futureShipped, destinationShipped: ticket.shipped, - salesPersonFk: ticket.client.salesPersonFk, + salesPersonFk: ticket.workerFk, }); } - const params = { tickets: ticketsToMove }; await axios.post('Tickets/merge', params); vnTableRef.value.reload(); diff --git a/src/pages/Ticket/TicketFuture.vue b/src/pages/Ticket/TicketFuture.vue index 41a53aae8..0d216bed4 100644 --- a/src/pages/Ticket/TicketFuture.vue +++ b/src/pages/Ticket/TicketFuture.vue @@ -245,13 +245,12 @@ const totalPriceColor = (totalWithVat) => const moveTicketsFuture = async () => { const ticketsToMove = selectedTickets.value.map((ticket) => { - console.log('salesPersonFk: ', ticket.client); return { originId: ticket.id, destinationId: ticket.futureId, originShipped: ticket.shipped, destinationShipped: ticket.futureShipped, - salesPersonFk: ticket.client.salesPersonFk, + salesPersonFk: ticket.salesPersonFk, }; });