{% extends 'facturacion/impresos/impreso_base.html.twig' %} {% set cliente = factura.cliente %} {% block tipo_comprobante %} FACTURA B {% endblock %} {% block datos_cliente %}

{{ factura.cliente.apenom | upper }}

{{ factura.cliente.direccion }}

{{ factura.cliente.condIva ? factura.cliente.condIva.condicion : '' }}

{% endblock %} {% block datos_izquierda %} {% include 'facturacion/impresos/data_empresa.html.twig' %} {% endblock %} {% block datos_derecha %}

N° Control: {% if comprobante and comprobante.talonario %} {{ '%04d' | format(comprobante.talonario.nroTalonario) }} - {{ '%08d' | format(comprobante.nroComp) }}

{% endif %}

Fecha: {{ comprobante.fechaComp | date('d-m-Y') }}

C.U.I.T. N°: 20-14305977-5

ING. BRUTOS C.M. N°: 921-747180-2

INICIO DE ACTIVIDAD: 01/01/1992

I.V.A. RESPONSABLE INSCRIPTO

C.U.I.T./L: {{ factura.cliente.cuilt }}

{{ factura.cliente.localidad.descripcionLoc }}, {{ factura.cliente.localidad.provincia.descripcionPro }}

{% endblock %} {% block detalle_productos %}
Cantidad
Código
Descripción
Precio Unit.
DESC/AUM
Importe
{% set dto_col = 0 %} {% for factulinea in factura.factulineas %} {% set precio = factulinea.precioManual ? factulinea.precioManual : factulinea.precio %} {% endfor %} {% if dto_col == 0 %} {% endif %}
{{ factulinea.cantidad }} {% if factulinea.articulo %}{{ factulinea.articulo.codigo }}{% endif %} {% if factulinea.articulo %}{{ factulinea.articulo.descripcion }}{% endif %} {{ precio | number_format(2,",",".") }} {% if factulinea.dcto<0 %} {% if factulinea.dcto>-99 %} {{ factulinea.dcto }}% {% endif%} {% if factulinea.dcto<-99 %} ${{ factulinea.dcto }} {% endif %} {% set dto_col=1 %} {% endif%} {% if factulinea.dcto>0 %} {% if factulinea.dcto<99 %} {{ factulinea.dcto }}% {% endif %} {% if factulinea.dcto>99 %} ${{ factulinea.dcto }} {% endif %} {% set dto_col=1 %} {% endif %} {{ (factulinea.importe ) | number_format(2,",",".") }}
{% endblock %} {% block footer %}
Subtotal {{ factura.porcentajeAumtotal > 0 ? "% Aum." : "% Dto." }} Aum. Forma de Pago Des. Forma de Pago {{ factura.porcentajeAumtotal > 0 ? "% Subtotal c/Aum." : "% Subtotal c/Dto." }}
Condición de Pago: {# {% if factura.formaPago == 'TA' %}Tarjeta{% else %}{{ factura.totalCuentaCorriente ? 'Cuenta Corriente' : 'Contado' }}{% endif %}#} {% if factura.formaPago == 'TA' %} TARJETA {% endif %} {% if factura.formaPago == 'EF' %} EFECTIVO {% endif %} {% if factura.formaPago == 'CC' %} CUENTA CORRIENTE {% endif %} {% if factura.formaPago == 'FI' %} FINANCIERA {% endif %} {% if factura.formaPago == 'MU' %} MUTUAL {% endif %} {% if factura.formaPago == 'DI' %} DIVIDIDO {% endif %} {% if factura.formaPago == 'QR' %} QR {% endif %} {% if factura.formaPago == 'TRAN' %} TRANSFERENCIA {% endif %}
{% if factura.formaPago == 'TA' %}
{{ ( factura.Subtotal ) | number_format(2,",",".") }} {{ factura.porcentajeDesc }} {{ ( factura.aumentoFormaPago ) | number_format(2,",",".") }} {{ ( factura.descuentoFormaPago ) | number_format(2,",",".") }} {{ factura.totalFactura | number_format(2,",",".") }}
{% endif %}
{% set total_final = factura.totalCuentaCorriente + factura.totalCheque + factura.totalEfectivo + factura.totalTarjeta + factura.totalMutual + factura.totalFinanciera + factura.totalQr + factura.totalTransferencia %} TOTAL: $ {{ ( total_final ) | number_format(2,",",".") }}.-
{% if datosTarjetas|length %} {% for tarjeta in datosTarjetas %} {% if tarjeta.tarjeta.tipo == 'CREDITO'%} {% endif %} {% if tarjeta.aumento>0 %} {% endif %} {% if tarjeta.descuento>0 %} {% endif %} {% if tarjeta.tarjeta.tipo == 'CREDITO'%} {% if tarjeta.cantCuotas>0%} {% endif %} {% if tarjeta.montoCuotas>0%} {% endif %} {% endif %} {% if tarjeta.tarjeta.tipo == 'DEBITO'%} {% if tarjeta.descuento>0 %} {% endif %} {% endif %} {% if ((tarjeta.tarjeta.tipo == 'CREDITO') and (tarjeta.planPago.id != 132)) %} {% if tarjeta.aumento>0 %} {% endif %} {% endif %} {% if ((tarjeta.tarjeta.tipo == 'CREDITO') and (tarjeta.planPago.id == 132)) %} {% endif %}
FORMA DE PAGOPLAN DE PAGOIMPORTEAUMENTO FINALDESCUENTO FINALCUOTASMONTO
{{ tarjeta.tarjeta.tipo }}$ {{tarjeta.monto}} $ {{tarjeta.descuento}}$ {{(tarjeta.monto - tarjeta.descuento) | number_format(2,",",".")}}{{ tarjeta.tarjeta.tipo }} {{tarjeta.planPago.nombrePlan}} $ {{tarjeta.monto}}$ {{tarjeta.aumento}} $ {{(tarjeta.monto + tarjeta.aumento) | number_format(2,",",".")}}{{tarjeta.cantCuotas}} $ {{tarjeta.montoCuotas}}{{ tarjeta.tarjeta.tipo }} {{tarjeta.planPago.nombrePlan}} $ {{(tarjeta.monto) | number_format(2,",",".") }} {{tarjeta.descuento}} $ {{(tarjeta.monto - tarjeta.descuento) | number_format(2,",",".") }} $ {{tarjeta.montoCuotas}}
{% endfor %} {% endif %} {% if factura.totalMutual %}
MUTUAL PLAN DE PAGO CUOTAS MONTO MONTO DE CUOTAS AUMENTO
{{datosMutual.mutual.nombre}} {{datosMutual.planPago.nombrePlan}} {{datosMutual.planPago.cantSInteres}} $ {{datosMutual.monto}} $ {{datosMutual.MontoCuotas}} $ {{((datosMutual.MontoCuotas * datosMutual.planPago.cantSInteres ) - datosMutual.monto)|round }}
{% endif %} {% if factura.totalQr %}
{% for pqr in factura.pagosQR %} {% endfor %}
NOMBRE IMPORTE DECUENTO
{{pqr.qr.nombre}} $ {{pqr.monto | number_format(2,",",".") }} $ {{pqr.descuento | number_format(2,",",".") }} {{ pqr.qr.descuento ? pqr.qr.descuento : 0 }}%
{% endif %} {% if factura.totalTransferencia %}
IMPORTE
$ {{factura.totalTransferencia | number_format(2,",",".") }}
{% endif %} {% if factura.totalCuentaCorriente %}
IMPORTE CUOTAS
$ {{factura.totalCuentaCorriente| number_format(2,",",".") }} {{factura.cuotasCuentaCorriente}}
{% endif %} {% if factura.totalFinanciera %} {% if datosFinanciera.aumentoFormaPago>0 %} {% endif %} {% if datosFinanciera.aumentoFormaPago>0 %} {% endif %}
FINANCIERA PLAN PAGO CUOTAS MONTO MONTO DE CUOTASAUMENTO
{{datosFinanciera.financiera.nombre}} {{datosFinanciera.planPago.nombrePlan}} {{datosFinanciera.cuotas}} $ {{datosFinanciera.monto}} $ {{datosFinanciera.MontoCuotas}}$ {{datosFinanciera.aumentoFormaPago}}
{% endif %} {% if factura.totalEfectivo > 0 and factura.porcentajeDesc > 0 %}
FORMA DE PAGO IMPORTE DESCUENTO TOTAL
EFECTIVO $ {{ ((factura.subtotal - factura.totaltarjeta - factura.totalFinanciera - factura.totalMutual - factura.totalQr - factura.totalTransferencia - factura.totalCuentaCorriente - factura.descuentoFormaPago ) ) | number_format(2,",",".") }} $ {{((factura.subtotal - factura.totaltarjeta - factura.totalFinanciera - factura.totalMutual - factura.totalQr - factura.totalTransferencia - factura.totalCuentaCorriente - factura.descuentoFormaPago )*(factura.porcentajeDesc/100) ) | number_format(2,",",".") }} $ {{ factura.TotalEfectivo }}
{% endif %} {% if factura.descuentoMonto > 0 %}
CONCEPTO DESCUENTO
DESCUENTO GENERAL $ {{ factura.descuentoMonto | number_format(2,",",".") }}
{% endif %} {% endblock %} {% block full %} {% if not comprobante.codigoQRUri %}
{% else %}
CAE: {{ comprobante.cae }}
Fecha Vencimiento: {{ comprobante.fechaFormateada }}
{% endif %} {#
#} {# CAE: {{ comprobante.cae }}
#} {# Fecha Vencimiento: {{ comprobante.fechaFormateada }}#} {# {% if comprobante.codigoQRUri %}#} {#
#} {# {% endif %}#} {#
#} {% endblock %}