diff --git a/src/pages/Ticket/TicketAdvance.vue b/src/pages/Ticket/TicketAdvance.vue index 1d88ae3f8..05bd14075 100644 --- a/src/pages/Ticket/TicketAdvance.vue +++ b/src/pages/Ticket/TicketAdvance.vue @@ -259,10 +259,9 @@ const moveTicketsAdvance = async () => { destinationId: ticket.id, originShipped: ticket.futureShipped, destinationShipped: ticket.shipped, - workerFk: ticket.workerFk, + 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 74c0d3202..0d216bed4 100644 --- a/src/pages/Ticket/TicketFuture.vue +++ b/src/pages/Ticket/TicketFuture.vue @@ -244,13 +244,15 @@ const totalPriceColor = (totalWithVat) => isLessThan50(totalWithVat) ? 'warning' : 'transparent'; const moveTicketsFuture = async () => { - const ticketsToMove = selectedTickets.value.map((ticket) => ({ - originId: ticket.id, - destinationId: ticket.futureId, - originShipped: ticket.shipped, - destinationShipped: ticket.futureShipped, - workerFk: ticket.workerFk, - })); + const ticketsToMove = selectedTickets.value.map((ticket) => { + return { + originId: ticket.id, + destinationId: ticket.futureId, + originShipped: ticket.shipped, + destinationShipped: ticket.futureShipped, + salesPersonFk: ticket.salesPersonFk, + }; + }); let params = { tickets: ticketsToMove }; await axios.post('Tickets/merge', params);