From fc80946817d054b7a17778d42b1c29ac2a249a30 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 14 Feb 2025 17:18:36 +0100 Subject: [PATCH] fix: refs #6943 minor changes --- src/pages/Customer/Card/CustomerFiscalData.vue | 3 ++- src/pages/Customer/components/CustomerAddressEdit.vue | 7 ++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/pages/Customer/Card/CustomerFiscalData.vue b/src/pages/Customer/Card/CustomerFiscalData.vue index 32c579c0b5e..95ae240a3b4 100644 --- a/src/pages/Customer/Card/CustomerFiscalData.vue +++ b/src/pages/Customer/Card/CustomerFiscalData.vue @@ -3,6 +3,7 @@ import { ref } from 'vue'; import { useI18n } from 'vue-i18n'; import { useRoute } from 'vue-router'; import { useQuasar } from 'quasar'; +import axios from 'axios'; import useNotify from 'src/composables/useNotify.js'; import FetchData from 'components/FetchData.vue'; @@ -48,7 +49,7 @@ async function checkEtChanges(data, _, originalData) { } async function acceptPropagate({ isEqualizated }) { - await $axios.patch(`Clients/${route.params.id}/addressesPropagateRe`, { + await axios.patch(`Clients/${route.params.id}/addressesPropagateRe`, { isEqualizated, }); notify(t('Equivalent tax spreaded'), 'warning'); diff --git a/src/pages/Customer/components/CustomerAddressEdit.vue b/src/pages/Customer/components/CustomerAddressEdit.vue index 42ac952d4d7..fdb8e30e185 100644 --- a/src/pages/Customer/components/CustomerAddressEdit.vue +++ b/src/pages/Customer/components/CustomerAddressEdit.vue @@ -96,11 +96,11 @@ const updateObservations = async (payload) => { await axios.post('AddressObservations/crud', payload); notes.value = []; deletes.value = []; - toCustomerAddress(); }; async function updateAll({ data, payload }) { await updateObservations(payload); await updateAddress(data); + toCustomerAddress(); } function getPayload() { return { @@ -137,15 +137,12 @@ async function handleDialog(data) { .onOk(async () => { await updateAddressTicket(); await updateAll(body); - toCustomerAddress(); }) .onCancel(async () => { await updateAll(body); - toCustomerAddress(); }); } else { - updateAll(body); - toCustomerAddress(); + await updateAll(body); } }