forked from verdnatura/salix-front
fix: ticketDescriptorMenu
This commit is contained in:
parent
2ae482ff8c
commit
4a81598883
|
@ -30,10 +30,13 @@ const actions = {
|
||||||
let clonedTicketId;
|
let clonedTicketId;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const { data } = await axios.post(`Tickets/${ticketId}/clone`, {
|
const { data } = await axios.post(`Tickets/cloneAll`, {
|
||||||
shipped: ticket.value.shipped,
|
shipped: ticket.value.shipped,
|
||||||
|
ticketsIds: [ticket.value.id],
|
||||||
|
withWarehouse: true,
|
||||||
|
negative: false,
|
||||||
});
|
});
|
||||||
clonedTicketId = data;
|
clonedTicketId = data[0].id;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
opts.message = t('It was not able to clone the ticket');
|
opts.message = t('It was not able to clone the ticket');
|
||||||
opts.type = 'negative';
|
opts.type = 'negative';
|
||||||
|
|
Loading…
Reference in New Issue