{% extends reportShell|default('base.html.twig') %} {% block title %}{{ 'report.pending_documents'|trans }}{% endblock %} {% block page_title %}{{ 'report.pending_documents'|trans }}{% endblock %} {% block stylesheets %}{% if reportShell|default('base.html.twig') == 'base.html.twig' %}{{ parent() }}{% endif %}{% endblock %} {% block breadcrumb %}{% endblock %} {% block report_title %}{{ 'report.pending_documents'|trans }}{% endblock %} {% block report_subtitle %}Corte al {{ filtros.fecha_corte|date('d/m/Y') }}{% endblock %} {% block content %} {% set isExportView = reportShell|default('base.html.twig') != 'base.html.twig' %} {% set exportQuery = {'proveedor_id': filtros.proveedor_id, 'estado': filtros.estado, 'fecha_corte': filtros.fecha_corte} %}
{% if not isExportView %}{% endif %}
{% if not isExportView %}

{{ 'report.filters'|trans }}

Ajusta proveedor, estado y fecha de corte.

{% endif %}
{% if isExportView %}ExcelExcel datosPDF{{ 'button.print'|trans }}{% else %}{% include 'reporte/_export_menu.html.twig' with {id: 'pending-documents-export-menu', routeName: 'rep_estado_documentos', exportQuery: exportQuery} only %}{% endif %}
{% for metric in [{label: 'Documentos', value: stats.documentos}, {label: 'Vencidos', value: stats.vencidos}, {label: 'Por vencer', value: stats.por_vencer}] %}
{{ metric.label }}{{ metric.value }}
{% endfor %} {% for total in totalesMoneda %}
Saldo {{ total.moneda }}{{ total.moneda }} {{ total.saldo|number_format(2, '.', ',') }}
{% endfor %}
{{ block('report_body') }}
{% endblock %} {% block report_body %} {% set isExportView = reportShell|default('base.html.twig') != 'base.html.twig' %}
{% if not isExportView %}{% endif %} {% for documento in documentos %} {% if not isExportView %}{% endif %} {% else %}{% endfor %}
Documentos pendientes y vencidos
ProveedorTipoDocumentoF. emisiónF. vencimientoDíasMonedaTotalSaldoEstadoAcción
{{ documento.proveedor }}{{ documento.tipo }}{{ documento.documento }}{{ documento.fecha_emision }}{{ documento.fecha_vencimiento }}{{ documento.dias }}{{ documento.moneda }}{{ documento.total|number_format(2, '.', ',') }}{{ documento.saldo|number_format(2, '.', ',') }} {% if documento.estado == 'Vencido' %}{{ documento.estado }}{% elseif documento.estado == 'Por vencer' %}{{ documento.estado }}{% else %}{{ documento.estado }}{% endif %}{% if is_granted('ROLE_OPERADOR') and documento.saldo > 0 %}Registrar pago{% endif %}

No hay documentos para los filtros seleccionados.

{% if not isExportView %}

Ajusta proveedor, estado o fecha de corte para ampliar la búsqueda.

{% endif %}
{% endblock %}