feat: refs #8398 moveTicketsFuture #1223

Merged
robert merged 5 commits from 8398-mergeSendCheckingPresence into dev 2025-01-23 09:50:57 +00:00
2 changed files with 2 additions and 5 deletions
Showing only changes of commit 8182bf7b91 - Show all commits

View File

@ -254,16 +254,14 @@ const moveTicketsAdvance = async () => {
} }
continue; continue;
} }
console.log('ticket: ', ticket);
ticketsToMove.push({ ticketsToMove.push({
originId: ticket.futureId, originId: ticket.futureId,
destinationId: ticket.id, destinationId: ticket.id,
originShipped: ticket.futureShipped, originShipped: ticket.futureShipped,
destinationShipped: ticket.shipped, destinationShipped: ticket.shipped,
salesPersonFk: ticket.client.salesPersonFk, salesPersonFk: ticket.workerFk,
}); });
} }
const params = { tickets: ticketsToMove }; const params = { tickets: ticketsToMove };
await axios.post('Tickets/merge', params); await axios.post('Tickets/merge', params);
vnTableRef.value.reload(); vnTableRef.value.reload();

View File

@ -245,13 +245,12 @@ const totalPriceColor = (totalWithVat) =>
const moveTicketsFuture = async () => { const moveTicketsFuture = async () => {
const ticketsToMove = selectedTickets.value.map((ticket) => { const ticketsToMove = selectedTickets.value.map((ticket) => {
console.log('salesPersonFk: ', ticket.client);
return { return {
originId: ticket.id, originId: ticket.id,
destinationId: ticket.futureId, destinationId: ticket.futureId,
originShipped: ticket.shipped, originShipped: ticket.shipped,
destinationShipped: ticket.futureShipped, destinationShipped: ticket.futureShipped,
salesPersonFk: ticket.client.salesPersonFk, salesPersonFk: ticket.salesPersonFk,
}; };
}); });