feat: refs #8398 modify previous changes
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Robert Ferrús 2025-01-16 07:29:37 +01:00
parent 764eef13c3
commit 8182bf7b91
2 changed files with 2 additions and 5 deletions

View File

@ -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();

View File

@ -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,
};
});