0
0
Fork 0

fix: ticketDescriptorMenu

This commit is contained in:
Javier Segarra 2024-08-27 10:27:43 +02:00
parent 2ae482ff8c
commit 4a81598883
1 changed files with 5 additions and 2 deletions

View File

@ -30,10 +30,13 @@ const actions = {
let clonedTicketId;
try {
const { data } = await axios.post(`Tickets/${ticketId}/clone`, {
const { data } = await axios.post(`Tickets/cloneAll`, {
shipped: ticket.value.shipped,
ticketsIds: [ticket.value.id],
withWarehouse: true,
negative: false,
});
clonedTicketId = data;
clonedTicketId = data[0].id;
} catch (e) {
opts.message = t('It was not able to clone the ticket');
opts.type = 'negative';