diff --git a/src/pages/Ticket/Card/TicketComponents.vue b/src/pages/Ticket/Card/TicketComponents.vue
index 85d2179a2..5aeb6b0a5 100644
--- a/src/pages/Ticket/Card/TicketComponents.vue
+++ b/src/pages/Ticket/Card/TicketComponents.vue
@@ -37,7 +37,8 @@ watch(
getTheoricalCost();
if (ticketData.value?.zone && ticketData.value?.zone?.isVolumetric)
getTicketVolume();
- }
+ },
+ { immediate: true }
);
const salesFilter = computed(() => ({
@@ -134,7 +135,6 @@ const getComponentsSum = async () => {
try {
const { data } = await axios.get(`Tickets/${route.params.id}/getComponentsSum`);
componentsList.value = data;
- console.log('componentsList', componentsList.value);
} catch (error) {
console.error(error);
}
@@ -153,7 +153,6 @@ const getTicketVolume = async () => {
try {
if (!ticketData.value) return;
const { data } = await axios.get(`Tickets/${ticketData.value.id}/getVolume`);
- console.log('data volume: ', data);
ticketVolume.value = data[0].volume;
} catch (error) {
console.error(error);
@@ -218,8 +217,12 @@ onUnmounted(() => (stateStore.rightDrawer = false));
class="justify-center"
horizontal
>
- {{ component.name }}:
- {{ toCurrency(component.value, 'EUR', 3) }}
+
+ {{ component.name }}:
+
+ {{
+ toCurrency(component.value, 'EUR', 3)
+ }}
{
params: { filter: JSON.stringify(filter) },
});
defaultTaxClass.value = data;
- console.log('defaultTaxClass', defaultTaxClass.value);
} catch (error) {
console.error(error);
}