{% extends 'layouts/panel_layout.html.twig' %} {% block title %} Cuenta Corriente {% endblock %} {% block stylesheets %} {{ encore_entry_link_tags('cuenta_corriente_index') }} {% endblock %} {% block content %}

Resumen Debe Haber

{{ proveedor.razonSocial }}

${{ total | number_format(2) }}

Total

{{ form_row(filtro.filtroFecha) }} {{ form_row(filtro.descripcion) }}
Volver

TOTAL: $23423432.24

{{ filtro.filtroFecha.vars.value }}

{{ proveedor.razonSocial }}

Resumen de cuenta
Fecha: {{ 'now' | date('d-m-Y') }}
{% set total = 0 %} {% for h in historial %} {% set total = total + h.debe - h.haber %} {% endfor %}
Fecha Descripción Facturado Debe Haber Saldo Operación
Totales {{ totalDebe | number_format(2) }} {{ totalHaber | number_format(2) }}
{{ h.fecha | date('m-d-Y') }}

({{ h.hora | date('H:m:s') }})

{% if h.remito %} {% if (h.remito.f==1) %} {% endif %} {% if (h.remito.f==0) %} {% endif %} {% elseif h.ordenPago and (h.ordenPago.referencias | length > 0) %} {% set numFactArr = [] %} {% for ref in h.ordenPago.referencias %} {% if ref.remito %} {% set numFactArr = numFactArr | merge( [ [ [ ref.remito.numeroFactura, ref.remito.puntoFactura ] | join('-'), ' (', ref.remito.codremito , ')' ] | join ] )%} {% endif %} {% endfor %}
ORP. Nº {{ h.ordenPago.id }} por comprobantes: {{ numFactArr| join(', ') }}
{% else %}
{{ h.descripcion }}
{% endif %}
{% if h.f %}F{% else %}N/F{% endif %} {% if h.debe < 0 %}-{% endif %}${{ h.debe | abs | number_format(2) }} {% if h.haber < 0 %}-{% endif %}${{ h.haber | abs | number_format(2) }} {% if total < 0 %}-{% endif %}${{ total | abs | number_format(2)}} {% if is_granted('ROLE_ADMIN') %} {% if h.ordenPago %} {% endif %} {% if not h.ordenPago and not h.referenciaDe %} {% endif %} {% endif %}
{# MODALES - EDITAR CUENTA CORRIENTE #}
{% endblock %} {% block javascripts %} {{ encore_entry_script_tags('proveedor_debe_haber') }} {% endblock %}