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 8 additions and 1 deletions
Showing only changes of commit cba6b000fc - Show all commits

View File

@ -17,6 +17,7 @@ import { storeToRefs } from 'pinia';
const { t } = useI18n();
const route = useRoute();
const jApi = inject('jApi');
const api = inject('api');
const { notify } = useNotify();
const appStore = useAppStore();
const { isHeaderMounted } = storeToRefs(appStore);
@ -30,7 +31,13 @@ const tpv = tpvStore();
onMounted(async () => {
await tpv.check(route);
orders.value = await jApi.query('CALL myTicket_list(NULL, NULL)');
const myTickets = await api.post('applications/myTicket_list/execute-proc', new URLSearchParams({
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]',
}));
orders.value = myTickets.data;
debt.value = await jApi.getValue('SELECT -myClient_getDebt(NULL)');
});