perf: refs #8197 fix and imrpove filters #1234

Merged
alexm merged 6 commits from 8197-fix_filters into dev 2025-01-21 10:48:32 +00:00
1 changed files with 15 additions and 1 deletions
Showing only changes of commit a738fe1579 - Show all commits

View File

@ -208,6 +208,20 @@ async function remove(item) {
async function handleConfirm() { async function handleConfirm() {
const result = await confirm(route.params.id); const result = await confirm(route.params.id);
if (result) { 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({ quasar.notify({
message: t('globals.dataSaved'), message: t('globals.dataSaved'),
type: 'positive', type: 'positive',
@ -215,7 +229,7 @@ async function handleConfirm() {
router.push({ router.push({
name: 'TicketSale', name: 'TicketSale',
query: { query: {
table: JSON.stringify({ id: route.params.id }), table: JSON.stringify({ id: ticket.data[0].ticketFk }),
}, },
}); });
} }