feat: refs #8077 sumDefaulter #1239

Merged
robert merged 9 commits from 8077-sumDefaulterFrontFix into dev 2025-01-24 10:55:38 +00:00
2 changed files with 10 additions and 9 deletions
Showing only changes of commit a0f4b74422 - Show all commits

View File

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

View File

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