0
0
Fork 0

fix: problem from CustomerDescriptor

This commit is contained in:
Javier Segarra 2024-11-23 00:33:11 +01:00
parent 87d3dd6fa8
commit 12dcb51fbe
1 changed files with 4 additions and 1 deletions

View File

@ -36,7 +36,10 @@ const entityId = computed(() => {
}); });
const data = ref(useCardDescription()); const data = ref(useCardDescription());
const setData = (entity) => (data.value = useCardDescription(entity?.name, entity?.id)); const setData = (entity) => {
data.value = useCardDescription(entity?.name, entity?.id);
if (customer.value) customer.value.webAccess = data.value?.account?.isActive;
};
const debtWarning = computed(() => { const debtWarning = computed(() => {
return customer.value?.debt > customer.value?.credit ? 'negative' : 'primary'; return customer.value?.debt > customer.value?.credit ? 'negative' : 'primary';
}); });