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'; +});