fix: use Salix to get the list of confirmed orders #124

Merged
jsegarra merged 7 commits from ldragan/hedera-web:taro/confirmed-orders into beta 2025-03-28 13:32:03 +00:00
1 changed files with 5 additions and 9 deletions
Showing only changes of commit d012ca74fe - Show all commits

View File

@ -17,7 +17,6 @@ import { storeToRefs } from 'pinia';
const { t } = useI18n();
const route = useRoute();
const jApi = inject('jApi');
const api = inject('api');
const { notify } = useNotify();
const appStore = useAppStore();
@ -32,17 +31,17 @@ const tpv = tpvStore();
onMounted(async () => {
await tpv.check(route);
const myTickets = await api.post('applications/myTicket_list/execute-proc', new URLSearchParams({
const myTickets = await api.post('applications/myTicket_list/execute-proc', {
Review

@alexm lo ves bien o hacemos llamada a ticketList con where:{clientFk: userId}??
Yo le propuse que usásemos esta forma porque llamamos a hedera, y me parecia lo mas correcto

@alexm lo ves bien o hacemos llamada a ticketList con where:{clientFk: userId}?? Yo le propuse que usásemos esta forma porque llamamos a hedera, y me parecia lo mas correcto
Review

Si se puede con TicketList entiendo que mejor

Si se puede con TicketList entiendo que mejor
schema: 'hedera',
params: '[null, null]',
}));
params: [null, null],
});
orders.value = myTickets.data;
});
const getDebt = async (userId) => {
onUserId(async (userId) => {
const myClientDebt = await api.get(`clients/${userId}/getDebt`);
debt.value = -myClientDebt.data;
}
});
const onPayClick = async () => {
showAmountToPayDialog.value = true;
@ -62,9 +61,6 @@ const onConfirmPay = async () => {
amountToPay.value = parseFloat(amount);
await tpv.pay(amountToPay.value);
};
onUserId(getDebt);
</script>
<template>