diff --git a/src/pages/Customer/Card/CustomerDescriptor.vue b/src/pages/Customer/Card/CustomerDescriptor.vue index 43103bd68..3dca43925 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'; +});