From 0014356b3358709a4d5401d49f592e1bf93a2109 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 25 Mar 2025 10:08:58 +0100 Subject: [PATCH 1/2] fix: use store instead formData --- src/pages/Ticket/Card/BasicData/TicketBasicDataView.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/Ticket/Card/BasicData/TicketBasicDataView.vue b/src/pages/Ticket/Card/BasicData/TicketBasicDataView.vue index 3c2fe95e5..76191b099 100644 --- a/src/pages/Ticket/Card/BasicData/TicketBasicDataView.vue +++ b/src/pages/Ticket/Card/BasicData/TicketBasicDataView.vue @@ -44,7 +44,7 @@ const getPriceDifference = async () => { shipped: ticket.value.shipped, }; const { data } = await axios.post( - `tickets/${formData.value.id}/priceDifference`, + `tickets/${ticket.value.id}/priceDifference`, params, ); ticket.value.sale = data; @@ -71,7 +71,7 @@ const submit = async () => { }; const { data } = await axios.post( - `tickets/${formData.value.id}/componentUpdate`, + `tickets/${ticket.value.id}/componentUpdate`, params, ); From af5a850311debf2d612e4dd1d824a9d5a4d37ee2 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 25 Mar 2025 11:41:04 +0100 Subject: [PATCH 2/2] fix: remove create prop departmentFk --- src/pages/Customer/Card/CustomerDescriptor.vue | 9 --------- .../Customer/Card/CustomerDescriptorMenu.vue | 17 ----------------- src/pages/Order/OrderList.vue | 1 - 3 files changed, 27 deletions(-) diff --git a/src/pages/Customer/Card/CustomerDescriptor.vue b/src/pages/Customer/Card/CustomerDescriptor.vue index 8978c00f1..bd127c9ed 100644 --- a/src/pages/Customer/Card/CustomerDescriptor.vue +++ b/src/pages/Customer/Card/CustomerDescriptor.vue @@ -105,15 +105,6 @@ const debtWarning = computed(() => { > {{ t('customer.card.isDisabled') }} - - - {{ t('Allowed substitution') }} - { .join('&'); useOpenURL(`/#/${type}/list?${params}`); }; -const updateSubstitutionAllowed = async () => { - try { - await axios.patch(`Clients/${route.params.id}`, { - substitutionAllowed: !$props.customer.substitutionAllowed, - }); - notify('globals.notificationSent', 'positive'); - } catch (error) { - notify(error.message, 'positive'); - } -};