{#- SPDX-License-Identifier: Apache-2.0 SPDX-FileCopyrightText: 2025 - 2026 BMO Soluciones, S.A. -#} {% extends 'base.html' %} {% from 'macros.html' import render_pagination %} {% block content %}

{{ _('Nóminas (Payruns)') }}

{{ _('Filtros') }}
{{ _('Limpiar') }}
{% if nominas %}
{% for nomina in nominas %} {% endfor %}
{{ _('Planilla') }} {{ _('Empresa') }} {{ _('Período') }} {{ _('Fecha Generación') }} {{ _('Estado') }} {{ _('Total Bruto') }} {{ _('Total Deducciones') }} {{ _('Total Neto') }} {{ _('Generado Por') }} {{ _('Acciones') }}
{% if nomina.planilla and nomina.planilla_id %} {{ nomina.planilla.nombre }}
ID: {{ nomina.planilla_id }} {% else %} - {% endif %}
{% if nomina.planilla and nomina.planilla.empresa %} {{ nomina.planilla.empresa.codigo }} {% else %} - {% endif %} {{ nomina.periodo_inicio.strftime('%d/%m/%Y') }} - {{ nomina.periodo_fin.strftime('%d/%m/%Y') }} {{ nomina.fecha_generacion.strftime('%d/%m/%Y %H:%M') }} {% if nomina.estado == 'calculating' %} {{ _('Calculando') }} {% if nomina.total_empleados and nomina.total_empleados > 0 %} ({{ nomina.empleados_procesados }}/{{ nomina.total_empleados }}) {% endif %} {% elif nomina.estado == 'generated' %} {{ _('Generado') }} {% elif nomina.estado == 'approved' %} {{ _('Aprobado') }} {% elif nomina.estado == 'applied' %} {{ _('Aplicado') }} {% elif nomina.estado == 'paid' %} {{ _('Pagado') }} {% elif nomina.estado == 'cancelled' %} {{ _('Anulado') }} {% elif nomina.estado == 'error' %} {{ _('Error') }} {% else %} {{ nomina.estado }} {% endif %} {{ "{:,.2f}".format(nomina.total_bruto|float) if nomina.total_bruto else '0.00' }} {{ "{:,.2f}".format(nomina.total_deducciones|float) if nomina.total_deducciones else '0.00' }} {{ "{:,.2f}".format(nomina.total_neto|float) if nomina.total_neto else '0.00' }} {{ nomina.generado_por or '-' }} {% if nomina.planilla_id %} {% else %} {% endif %}
{{ render_pagination(pagination, 'nomina.index') }} {% else %}

{{ _('No hay nóminas registradas') }}

{{ _('Las nóminas se crean ejecutando una planilla') }}

{% endif %}
{% endblock %}