feat: refs #8398 moveTicketsFuture
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
6de8687be1
commit
764eef13c3
|
@ -254,12 +254,13 @@ const moveTicketsAdvance = async () => {
|
|||
}
|
||||
continue;
|
||||
}
|
||||
console.log('ticket: ', ticket);
|
||||
ticketsToMove.push({
|
||||
originId: ticket.futureId,
|
||||
destinationId: ticket.id,
|
||||
originShipped: ticket.futureShipped,
|
||||
destinationShipped: ticket.shipped,
|
||||
workerFk: ticket.workerFk,
|
||||
salesPersonFk: ticket.client.salesPersonFk,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -244,13 +244,16 @@ const totalPriceColor = (totalWithVat) =>
|
|||
isLessThan50(totalWithVat) ? 'warning' : 'transparent';
|
||||
|
||||
const moveTicketsFuture = async () => {
|
||||
const ticketsToMove = selectedTickets.value.map((ticket) => ({
|
||||
const ticketsToMove = selectedTickets.value.map((ticket) => {
|
||||
console.log('salesPersonFk: ', ticket.client);
|
||||
return {
|
||||
originId: ticket.id,
|
||||
destinationId: ticket.futureId,
|
||||
originShipped: ticket.shipped,
|
||||
destinationShipped: ticket.futureShipped,
|
||||
workerFk: ticket.workerFk,
|
||||
}));
|
||||
salesPersonFk: ticket.client.salesPersonFk,
|
||||
};
|
||||
});
|
||||
|
||||
let params = { tickets: ticketsToMove };
|
||||
await axios.post('Tickets/merge', params);
|
||||
|
|
Loading…
Reference in New Issue