From 354f2ce0551fef98eea51af0ed0d97ae533df054 Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 15 Nov 2024 08:21:29 +0100 Subject: [PATCH 01/13] fix: deleted duplicate VnUsesMana --- src/pages/Ticket/Card/TicketSale.vue | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/pages/Ticket/Card/TicketSale.vue b/src/pages/Ticket/Card/TicketSale.vue index 8b84a0463..0e464d533 100644 --- a/src/pages/Ticket/Card/TicketSale.vue +++ b/src/pages/Ticket/Card/TicketSale.vue @@ -22,7 +22,6 @@ import { useVnConfirm } from 'composables/useVnConfirm'; import useNotify from 'src/composables/useNotify.js'; import axios from 'axios'; import VnTable from 'src/components/VnTable/VnTable.vue'; -import VnUsesMana from 'src/components/ui/VnUsesMana.vue'; const route = useRoute(); const router = useRouter(); @@ -779,9 +778,6 @@ watch( :label="t('ticketSale.discount')" type="number" /> -
- -
{{ toPercentage(row.discount / 100) }} From d52a0fdc7f611933bfc20bb3a41e838f8e353e4a Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 15 Nov 2024 10:23:57 +0000 Subject: [PATCH 02/13] fix: customer Risk icon color --- src/pages/Customer/Card/CustomerDescriptor.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/pages/Customer/Card/CustomerDescriptor.vue b/src/pages/Customer/Card/CustomerDescriptor.vue index 43103bd68..5b13f9513 100644 --- a/src/pages/Customer/Card/CustomerDescriptor.vue +++ b/src/pages/Customer/Card/CustomerDescriptor.vue @@ -37,6 +37,9 @@ const entityId = computed(() => { const data = ref(useCardDescription()); const setData = (entity) => (data.value = useCardDescription(entity?.name, entity?.id)); +const debtWarning = computed(() => { + return customer.value?.debt > customer.value?.credit ? 'negative' : 'primary'; +});