diff --git a/src/pages/Order/Card/OrderLines.vue b/src/pages/Order/Card/OrderLines.vue index 6093addb5..9d802c557 100644 --- a/src/pages/Order/Card/OrderLines.vue +++ b/src/pages/Order/Card/OrderLines.vue @@ -208,6 +208,20 @@ async function remove(item) { async function handleConfirm() { const result = await confirm(route.params.id); if (result) { + const sale = await axios.get(`OrderRows`, { + params: { + filter: JSON.stringify({ + where: { orderFk: route.params.id }, + }), + }, + }); + const ticket = await axios.get(`Sales`, { + params: { + filter: JSON.stringify({ + where: { id: sale.data[0].saleFk }, + }), + }, + }); quasar.notify({ message: t('globals.dataSaved'), type: 'positive', @@ -215,7 +229,7 @@ async function handleConfirm() { router.push({ name: 'TicketSale', query: { - table: JSON.stringify({ id: route.params.id }), + table: JSON.stringify({ id: ticket.data[0].ticketFk }), }, }); }