From d52a0fdc7f611933bfc20bb3a41e838f8e353e4a Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 15 Nov 2024 10:23:57 +0000 Subject: [PATCH 1/2] 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'; +});