{% extends 'facturacion/impresos/impreso_base.html.twig' %} {% block tipo_comprobante %} FACTURA A {% 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 %} {% if factura.porcentajeDesc > 0 %} {{ ( precio - ( precio * factura.porcentajeDesc /100 ) ) | number_format(2,",",".") }} {% endif %} {% if factura.porcentajeAum > 0 %} {{ ( precio + ( precio * factura.porcentajeDesc /100 ) ) | number_format(2,",",".") }} {% endif %} {% if not factura.porcentajeAum and not factura.porcentajeDesc %} {{ precio | number_format(2,",",".") }} {% endif %} {{ factulinea.importe | number_format(2,",",".") }}
{% endblock %} {% block footer %} {% if factura.porcentajeAumtotal %} {% elseif factura.porcentajeDesc %} {% else %} {% endif %}
Subtotal {{ factura.porcentajeAumtotal > 0 ? "% Aum." : "% Dto." }} {{ factura.porcentajeAumtotal > 0 ? "% Subtotal c/Aum." : "% Subtotal c/Dto." }} % I.V.A. I.V.A.
{{ ( factura.totalFactura + factura.alicuota) | number_format(2,",",".") }} {{ factura.porcentajeAumtotal }} {{ ( factura.totalFactura * ( factura.porcentajeAumtotal / 100) ) | number_format(2,",",".") }} 21 {{ ( factura.totalFactura * 21 / 100) | number_format(2,",",".") }}
{{ ( factura.totalFactura + factura.alicuota ) | number_format(2,",",".") }} {{ factura.porcentajeDesc }} {{ ( factura.totalFactura - factura.alicuota - ( factura.totalFactura - factura.alicuota * ( factura.porcentajeDesc / 100 ) ) ) | number_format(2,",",".") }}
{{ (factura.totalFactura - factura.alicuota) | number_format(2,",",".") }}        
{% set alicuota_aplicado = 0 %} {% if factura.extradata %} {% set extradata = ( factura.extradata | split('|') ) %} {% for data in extradata %} {% if 'alicuota_aplicado=' in data %} {% set alicuota_aplicado = ( data | split('alicuota_aplicado=') | first ) %} {% endif %} {% endfor %} {% endif %}
Alicuota Subtotal
{{ alicuota_aplicado }}% {{ factura.alicuota }}
Condición de Pago: {{ factura.totalCuentaCorriente ? 'Cuenta Corriente' : 'Contado' }}
TOTAL: $ {{ ( factura.totalFactura - factura.descuentoEfectivo ) | number_format(2,",",".") }}.- {# TOTAL: $ {{ (factura.porcentajeAumtotal > 0) ? ( factura.totalFactura + factura.totalFactura * ( factura.porcentajeAumtotal/100) + factura.alicuota ) | number_format(2,",",".") : ( factura.totalFactura - factura.totalFactura * (factura.porcentajeDesc / 100) + factura.alicuota ) | number_format(2,",",".") }}.-#}
{% endblock %} {% block full %}
CAE: {{ comprobante.cae }}
Fecha Vencimiento: {{ comprobante.fechaFormateada }}
{% endblock %}