diff --git a/src/pages/Ticket/Card/TicketService.vue b/src/pages/Ticket/Card/TicketService.vue index 5d9688834..1ec072dd2 100644 --- a/src/pages/Ticket/Card/TicketService.vue +++ b/src/pages/Ticket/Card/TicketService.vue @@ -19,12 +19,11 @@ const { t } = useI18n(); const ticketServiceTypeFetchRef = ref(null); const ticketServiceCrudRef = ref(null); const ticketServiceOptions = ref([]); -const selected = ref([]); const arrayData = useArrayData('TicketNotes'); const { store } = arrayData; const { notify } = useNotify(); -const selectedServices = ref(new Set()); +const selected = ref([]); const defaultTaxClass = ref(null); const crudModelFilter = computed(() => ({ @@ -48,10 +47,10 @@ onMounted(async () => await getDefaultTaxClass()); const createRefund = async () => { try { - if (!selectedServices.value.size) return; + if (!selected.value.length) return; const params = { - servicesIds: Array.from(selectedServices.value), + servicesIds: selected.value.map((s) => s.id), withWarehouse: false, negative: true, }; @@ -130,7 +129,7 @@ const columns = computed(() => [