{% extends "base.html" %} {% from "_componentes/tarjeta.html" import tarjeta %} {% from "_componentes/badges.html" import badge %} {% from "_componentes/cifra.html" import cifra %} {% from "_componentes/iconos.html" import icono %} {% from "_componentes/paginacion.html" import paginacion %} {% from "operaciones/_paso5.html" import encabezado, monto %} {% set ancho = "amplio" %} {% block titulo %}Créditos{% endblock %} {% block contenido %} {{ encabezado("creditos", tenant.fecha_corte) }} {%- set total = p.conteos.total or 1 %} {%- set sin_filtro = not (filtros.status or filtros.con_alertas) %}
{{ badge("Cliente #" ~ filtros.cliente_id, "info") }} ver ficha · todos los créditos
{%- endif %}| ID crédito | Cliente | Vehículo | Monto | Disposición ↓ | Status | Agencia | Pagos venc. | Alertas | Abrir |
|---|---|---|---|---|---|---|---|---|---|
| {{ fila.id_externo }} | {{ fila.cliente }} | {{ fila.vehiculo or "—" }} | {{ monto(fila.monto) }} | {{ fila.fecha_disposicion.strftime("%d/%m/%Y") if fila.fecha_disposicion else "—" }} | {{ badge(fila.status | capitalize, "exito" if fila.status == "activo" else "neutro") }} | {{ fila.agencia or "—" }} | {{ fila.pagos_vencidos if fila.pagos_vencidos is not none else "—" }} | {% if fila.alertas %}{{ icono("alertas", "icono--12") }}{{ fila.alertas_abiertas }} abiertas / {{ fila.alertas }}{% else %}—{% endif %} | {{ icono("chevron") }} |
| Ningún crédito cumple los filtros. | |||||||||