HOTFIX: Customer Risk color #942

Merged
jsegarra merged 2 commits from hotFix_customerRisk_icon into master 2024-11-15 10:32:36 +00:00
1 changed files with 11 additions and 0 deletions
Showing only changes of commit d52a0fdc7f - Show all commits

View File

@ -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';
});
</script>
<template>
@ -123,6 +126,14 @@ const setData = (entity) => (data.value = useCardDescription(entity?.name, entit
>
<QTooltip>{{ t('customer.card.notChecked') }}</QTooltip>
</QIcon>
<QIcon
v-if="customer.debt > customer.credit"
name="vn:risk"
size="xs"
:color="debtWarning"
>
<QTooltip>{{ t('customer.card.hasDebt') }}</QTooltip>
</QIcon>
<QBtn
v-if="customer.unpaid"
flat