diff --git a/src/pages/Ecomerce/OrdersView.vue b/src/pages/Ecomerce/OrdersView.vue index 67daeb1c..35370cc8 100644 --- a/src/pages/Ecomerce/OrdersView.vue +++ b/src/pages/Ecomerce/OrdersView.vue @@ -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({ + schema: 'hedera', + params: '[null, null]', + })); + + orders.value = myTickets.data; + debt.value = await jApi.getValue('SELECT -myClient_getDebt(NULL)'); });