fix: refs #8824 simplify VnLv component usage for credit insurance display
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Benjamin Esteve 2025-04-07 14:08:45 +02:00
parent d6363e4b45
commit b87e240c70
1 changed files with 2 additions and 7 deletions

View File

@ -293,14 +293,9 @@ const sumRisk = ({ clientRisks }) => {
<VnLv
v-if="entity.creditInsurance"
:label="t('customer.summary.securedCredit')"
:value="`${toCurrency(entity.creditInsurance)} (${entity.classifications[0]?.insurances[0]?.grade || ''})`"
:info="t('customer.summary.securedCreditInfo')"
>
<template #value>
{{ toCurrency(entity.creditInsurance) }}({{
dashIfEmpty(entity.classifications[0]?.insurances[0]?.grade)
}})
</template></VnLv
>
/>
<VnLv
:label="t('customer.summary.balance')"
:value="toCurrency(sumRisk(entity)) || toCurrency(0)"