{% extends reportShell|default('base.html.twig') %} {% block title %}Antiguedad de saldos{% endblock %} {% block page_title %}Antiguedad de saldos{% endblock %} {% block stylesheets %} {% if reportShell|default('base.html.twig') == 'base.html.twig' %} {{ parent() }} {% endif %} {% include 'reporte/_styles.html.twig' %} {% endblock %} {% block breadcrumb %} {% endblock %} {% block report_title %}Antiguedad de saldos{% endblock %} {% block report_subtitle %}Al {{ filtros.fechas.hasta|date('d/m/Y') }}{% endblock %} {% block content %} {% set isExportView = reportShell|default('base.html.twig') != 'base.html.twig' %} {% set exportQuery = {'hasta': filtros.fechas.hasta} %} {% if filtros.proveedor_id %} {% set exportQuery = exportQuery|merge({'proveedor_id': filtros.proveedor_id}) %} {% endif %}
| Proveedor / Moneda | Referencia | Documento | F. emision | F. vencimiento | Saldo | Corriente | 1 a 30 | 31 a 60 | 61 a 90 | 91 o mas |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ grupo.proveedor }} | {{ grupo.moneda }} | ||||||||||
| {{ grupo.proveedor }} | {{ doc.referencia }} | {{ doc.documento }} | {{ doc.f_aplicacion }} | {{ doc.f_vencimiento }} | {{ doc.saldo|number_format(2, '.', ',') }} | {{ doc.corriente > 0 ? doc.corriente|number_format(2, '.', ',') : '-' }} | {{ doc.d01_30 > 0 ? doc.d01_30|number_format(2, '.', ',') : '-' }} | {{ doc.d31_60 > 0 ? doc.d31_60|number_format(2, '.', ',') : '-' }} | {{ doc.d61_90 > 0 ? doc.d61_90|number_format(2, '.', ',') : '-' }} | {{ doc.d91_mas > 0 ? doc.d91_mas|number_format(2, '.', ',') : '-' }} |
| Subtotal {{ grupo.proveedor }} | {{ grupo.moneda }} | {{ grupo.subtotal.total|number_format(2, '.', ',') }} | {{ grupo.subtotal.corriente|number_format(2, '.', ',') }} | {{ grupo.subtotal.d01_30|number_format(2, '.', ',') }} | {{ grupo.subtotal.d31_60|number_format(2, '.', ',') }} | {{ grupo.subtotal.d61_90|number_format(2, '.', ',') }} | {{ grupo.subtotal.d91_mas|number_format(2, '.', ',') }} | ||||
| No hay saldos pendientes a la fecha seleccionada. | ||||||||||
| Total general | {{ grandTotal.total|number_format(2, '.', ',') }} | {{ grandTotal.corriente|number_format(2, '.', ',') }} | {{ grandTotal.d01_30|number_format(2, '.', ',') }} | {{ grandTotal.d31_60|number_format(2, '.', ',') }} | {{ grandTotal.d61_90|number_format(2, '.', ',') }} | {{ grandTotal.d91_mas|number_format(2, '.', ',') }} | ||||