feat(riesgo): la ficha muestra cómo se calculó cada indicador
La nota del cálculo (crédito más reciente para T2, edad a la fecha de corte para C1) aparece bajo el indicador en el detalle de la evaluación.
This commit is contained in:
1 parent
5fdb9ba7fe
commit
b2d211337f
2 files changed
+3
No files matched your search
@@ -60,6 +60,7 @@
|
||||
] %}
|
||||
{% call(fila, col) tabla(columnas, detalle.indicadores) %}
|
||||
{%- if col.clave == "clave" -%}<strong>{{ fila.clave }}</strong> {{ fila.nombre }}
|
||||
{%- if fila.nota %}<br><small>{{ fila.nota }}</small>{% 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) }}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user