From 2891e1363a9b71b7c0d263583883c6c715e025ed Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 15 Nov 2024 11:36:20 +0100 Subject: [PATCH 1/6] feat: #6943 CustomerDescriptor actions --- .../Customer/Card/CustomerDescriptor.vue | 10 ++++- .../Customer/Card/CustomerDescriptorMenu.vue | 42 +++++++++++++------ 2 files changed, 38 insertions(+), 14 deletions(-) diff --git a/src/pages/Customer/Card/CustomerDescriptor.vue b/src/pages/Customer/Card/CustomerDescriptor.vue index 43103bd68..15683dc48 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'; +});