{% extends 'base.html.twig' %} {% block title %}Caja{% endblock %} {% block body %}

Caja N°: {{ caja.id }}

Fecha Apertura {{ caja.fecha ? caja.fecha|date('d/m/Y H:i') : '' }} Monto Inicial {{ caja.efectivoInicio }} Abrió Usuario {{ caja.usuarioabre }}
Fecha Cierre {{ caja.fechacierre ? caja.fechacierre|date('d/m/Y H:i') : '' }} Monto Cierrre {{ caja.efectivoCierre }}
Usuario Cierra {{ caja.usuariocierra }}
{% for mediopago in saldosXmedioDePago %} {% if mediopago.monto < 0 %} {% endfor %}
Medio Pago Monto
{{ mediopago.nombre }} {% else %} {% endif %} {{ mediopago.monto|number_format(2, ',', '.') }}
{% if is_granted('ROLE_ADMIN') %}
{% for cuenta in cuentas %} {% if cuenta.saldo < 0 %} {% endfor %}
CUENTA SALDO
{{ cuenta.banco }} {% else %} {% endif %} {{ cuenta.saldo|number_format(2, ',', '.') }}
{% endif %}
{% if caja.fechacierre is null %} {% endif %}
{{ include('filters.html.twig') }}

Movimientos de Caja

Total Movimientos {{ cantMovimientos }}

{% for movimiento in cajaMovimientos %} {% if movimiento.tipoMovimiento.rubroMovimiento.tipoOperacion == -1 %} {% endfor %}
Acciones Id Fecha Monto Medio de Pago Tipo Movimiento Descripción Un. Negocio Usuario
{# aca pregunto si el medio de pago es CHEQUE y no esta cargado el cheque y el movimiento no es de corrección de caja, entonces muestro el boton para cargar los datos del cheque #} {% if ((movimiento.cheque is null) and (movimiento.MedioPago == "CHEQUE")) %} {% if movimiento.tipoMovimiento.codigo != constant('App\\Entity\\TipoMovimiento::COBRO_CHEQUE') and not ( movimiento.tipoMovimiento.codigo == constant('App\\Entity\\TipoMovimiento::ASIENTO_AJUSTE_POSITIVO') or movimiento.tipoMovimiento.codigo == constant('App\\Entity\\TipoMovimiento::ASIENTO_AJUSTE_NEGATIVO') ) %} {% if movimiento.tipoMovimiento.rubroMovimiento.tipoOperacion == 1 %}  Cheque {% else %}  Cheque {% endif %} {% endif %} {% elseif (movimiento.cheque is not null) and (movimiento.MedioPago == "CHEQUE")%}  Cheque {% endif %} {% if is_granted('ROLE_ADMIN') %} Editar {% endif %} {{ movimiento.id }}
Caja: {{ movimiento.caja.id }}
{{ movimiento.fecha | date('d/m/Y') }} {% else %} {% endif %} {{ movimiento.monto|number_format(2, ',', '.') }} {{ movimiento.medioPago }}
{{ movimiento.tipoComprobante }} - {{ movimiento.nroComprobante }}
{{ movimiento.tipoMovimiento }} {{ movimiento.descripcionLarga }} {% if movimiento.caso is not null %} {% if movimiento.caso.anuladoFecha is null %}  Caso N° {{ movimiento.caso.numero }} {% else %}  Caso N° {{ movimiento.caso.numero }} (ANULADO) {% endif %} {% endif %} {{ movimiento.unidadNegocio }} {{ movimiento.createdBy | upper }}
 volver {% if caja.fechacierre is null %}  cerrar  movimiento {% endif %} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}