diff --git a/app/templates/riesgo/cliente.html b/app/templates/riesgo/cliente.html index 631dcc6..d6f0ebe 100644 --- a/app/templates/riesgo/cliente.html +++ b/app/templates/riesgo/cliente.html @@ -60,6 +60,7 @@ ] %} {% call(fila, col) tabla(columnas, detalle.indicadores) %} {%- if col.clave == "clave" -%}{{ fila.clave }} {{ fila.nombre }} + {%- if fila.nota %}
{{ fila.nota }}{% endif -%} {%- elif col.clave == "valor" -%}{{ valor(fila.valor) }} {%- elif col.clave == "nivel" -%}{{ badge_nivel(fila.nivel) if fila.nivel else "—" }} {%- elif col.clave == "ponderacion" -%}{{ "%.2f" | format(fila.ponderacion) }} diff --git a/tests/test_laboratorio.py b/tests/test_laboratorio.py index 4d26093..35e5de0 100644 --- a/tests/test_laboratorio.py +++ b/tests/test_laboratorio.py @@ -109,6 +109,8 @@ def test_riesgo_de_un_cliente_muestra_detalle_e_historial( for texto in ("Evaluación vigente", "Detalle por indicador", "Historial", "Preponderancia"): assert texto in html assert "pendiente de validación de CHM" in html + assert "crédito más reciente" in html # cómo se calculó T2, en el detalle del indicador + assert "a la fecha de corte" in html # C1 assert "Reevaluar" not in html # el auditor no reevalúa