{% 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.
Importe
{% for factulinea in factura.factulineas %} {% set precio = factulinea.precioManual ? factulinea.precioManual : factulinea.precio %} {% endfor %}
{{ factulinea.cantidad }} {% if factulinea.articulo %}{{ factulinea.articulo.codigo }}{% endif %} {% if factulinea.articulo %}{{ factulinea.articulo.descripcionAmpliada }}{% endif %} {{ precio | number_format(2,",",".") }}   {{ ( factulinea.cantidad * precio ) | number_format(2,",",".") }}
{% endblock %} {% block footer %} {# {% if factura.porcentajeAumtotal>0 %}#} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {# {% if factura.porcentajeDesc>0 %}#} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {# {% else %}#} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {% endif %}
Subtotal {{ factura.porcentajeAumtotal > 0 ? "% Aum." : "% Dto." }} Aum. Forma de Pago Des. Forma de Pago {{ factura.porcentajeAumtotal > 0 ? "% Subtotal c/Aum." : "% Subtotal c/Dto." }}
{{ ( factura.totalFactura + factura.alicuota) | number_format(2,",",".") }}{{ factura.porcentajeAumtotal }}#} {# {{ ( factura.totalFactura * ( factura.porcentajeAumtotal / 100) ) | number_format(2,",",".") }}#} {#   
{{ ( factura.Subtotal + factura.alicuota ) | number_format(2,",",".") }} {{ factura.porcentajeDesc }}  #} {# #}{# {{ ( factura.totalFactura - factura.alicuota - ( factura.totalFactura - factura.alicuota * ( factura.porcentajeDesc / 100 ) ) ) | number_format(2,",",".") }}#} {# {{ ( factura.Subtotal - ( factura.Subtotal * ( factura.porcentajeDesc / 100 ) ) ) | number_format(2,",",".") }}
{{ (factura.totalFactura - factura.alicuota) | number_format(2,",",".") }}      
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 == 'EF' %} CONTADO {% endif %} {% if factura.formaPago == 'DI' %} DIVIDIDO {% endif %} {% if factura.formaPago == 'QR' %} QR {% endif %} {% if factura.formaPago == 'TRAN' %} TRANSFERENCIA {% endif %}
TOTAL: $ {{ ( factura.totalFactura - factura.descuentoEfectivo ) | number_format(2,",",".") }}.-
{% 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 %} {% if factura.formaPago == 'DI' %}
{{ ( factura.Subtotal ) | number_format(2,",",".") }} {{ factura.porcentajeDesc }} {{ ( factura.aumentoFormaPago ) | number_format(2,",",".") }} {{ ( factura.descuentoFormaPago ) | number_format(2,",",".") }} {# {{ ( factura.totalFactura - factura.alicuota - ( factura.totalFactura - factura.alicuota * ( factura.porcentajeDesc / 100 ) ) ) | number_format(2,",",".") }}#} {{ factura.totalFactura | number_format(2,",",".") }}
{% endif %} {% if datosTarjetas|length %} {% for tarjeta in datosTarjetas %} {% if tarjeta.tarjeta.tipo == 'DEBITO'%} {% else %} {% endif %}
FORMA DE PAGO PLAN DE PAGO MONTO AUMENTO DESCUENTO
{{ tarjeta.tarjeta.tipo }}    {{tarjeta.monto}}   {{tarjeta.descuento}}{{ tarjeta.tarjeta.tipo }}  {{tarjeta.planPago.nombrePlan}} {{tarjeta.monto}} {{tarjeta.aumento}}  
{% endfor %} {% endif %} {% endblock %} {% block full %}
CAE: {{ comprobante.cae }}
Fecha Vencimiento: {{ comprobante.fechaFormateada }}
{% endblock %}