{% extends 'layouts/panel_layout.html.twig' %} {% block title %} Facturación {% endblock %} {% block stylesheets %} {{ encore_entry_link_tags('facturacion_ver_factura') }} {% endblock %} {% block content %} {# TITULO #}

Resumen Pedido Confirmado #{{ factura.codfactura }}

{# BOTONERA PRINCIPAL #}
{% set importe = factura.totalCuentaCorriente + factura.totalCheque + factura.totalEfectivo + factura.totalTarjeta %} {#
#} {#
SUBTOTAL:
#} {#
#} {#
#} {#

$ {{ factura.subTotal | number_format(2,",",".") }}

#} {#
#} {% if factura.redondeo %}
REDONDEO:

$ {{ factura.redondeo | number_format(2,",",".") }}

{% endif %}

TOTAL:

{% set total_final = factura.totalCuentaCorriente + factura.totalCheque + factura.totalEfectivo + factura.totalTarjeta + factura.totalMutual + factura.totalFinanciera + factura.totalQr + factura.totalTransferencia %}

$ {{ ( total_final ) | number_format(2,",",".") }}

{#
#} {# #} {#
#}
{# ------------- ESTA PORCION DE CODIGO ES PARA ENVIAR LOS CORREOS A ASOEM #} {% if (factura.formaPago == 'MU') %} {% if((datosMutual.mutual.id == 3) or (datosMutual.mutual.id == 10 ))%}
{% endif %} {% endif %} {% if (factura.formaPago == 'TA') %} {% if datosTarjetas|length %} {% for tarjeta in datosTarjetas %} {% if(tarjeta.tarjeta.descripcion == 'TARJETA ASOEM') %}
{% endif %} {% endfor %} {% endif %} {% endif %} {# END ------------- ESTA PORCION DE CODIGO ES PARA ENVIAR LOS CORREOS A ASOEM #} {#
#} {# {% if factura.borrado != "1" %}#} {# {% if factura.formaPago == 'EF' %}#} {#
EFECTIVO
#} {# {% elseif factura.formaPago == 'CC' %}#} {#
CUENTA CORRIENTE
#} {# {% elseif factura.formaPago == 'TA' %}#} {#
TARJETA
#} {# {% elseif factura.formaPago == 'CH' %}#} {#
CHEQUE
#} {# {% elseif factura.formaPago == 'MU' %}#} {#
MUTUAL
#} {# {% elseif factura.formaPago == 'DI' %}#} {#
DIVIDIDO
#} {# {% elseif factura.formaPago == 'FI' %}#} {#
FINANCIERA
#} {# {% elseif factura.formaPago == 'TRAN' %}#} {#
TRANSFERENCIA
#} {# {% elseif factura.formaPago == 'QR' %}#} {#
QR
#} {# {% endif %}#} {# {% if factura.formaPago == 'CH' %}#} {# {% if factura.totalCheque > 0 %}#} {#

CHEQUE ${{ factura.totalCheque | number_format(2,",",".") }}

#} {# {% endif %}#} {# {% endif %}#} {# {% if factura.formaPago == 'TA' %}#} {# {% if factura.totalTarjeta > 0 %}#} {#

TARJETA ${{ factura.totalTarjeta | number_format(2,",",".") }}

#} {# {% endif %}#} {# {% endif %}#} {# {% if factura.formaPago == 'EF' %}#} {# {% if factura.totalEfectivo > 0 %}#} {#

EFECTIVO ${{ factura.totalEfectivo | number_format(2,",",".") }}

#} {# {% endif %}#} {# {% endif %}#} {# {% if factura.formaPago == 'CC' %}#} {# {% if factura.totalCuentaCorriente > 0 %}#} {#

CUENTA CORRIENTE ${{ factura.totalCuentaCorriente | number_format(2,",",".") }}

#} {# {% endif %}#} {# {% endif %}#} {# {% if factura.formaPago == 'MU' %}#} {# {% if factura.totalMutual > 0 %}#} {#

MUTUAL ${{ factura.totalMutual | number_format(2,",",".") }}

#} {# {% endif %}#} {# {% endif %}#} {# {% if factura.formaPago == 'FI' %}#} {# {% if factura.totalFinanciera > 0 %}#} {#

FINANCIERA ${{ factura.totalFinanciera | number_format(2,",",".") }}

#} {# {% endif %}#} {# {% endif %}#} {# {% if factura.formaPago == 'TRAN' %}#} {# {% if factura.totalTransferencia > 0 %}#} {#

TRANSFERENCIA ${{ factura.totalTransferencia | number_format(2,",",".") }}

#} {# {% endif %}#} {# {% endif %}#} {# {% if factura.formaPago == 'QR' %}#} {# {% if factura.totalQr > 0 %}#} {#

QR ${{ factura.totalQr | number_format(2,",",".") }}

#} {# {% endif %}#} {# {% endif %}#} {# {% if factura.formaPago == 'DI' %}#} {# {% if factura.totalCheque > 0 %}#} {#

CHEQUE ${{ factura.totalCheque | number_format(2,",",".") }}

#} {# {% endif %}#} {# {% if factura.totalFinanciera > 0 %}#} {#

FINANCIERA ${{ factura.totalFinanciera | number_format(2,",",".") }}

#} {# {% endif %}#} {# {% if factura.totalTransferencia > 0 %}#} {#

TRANSFERENCIA ${{ factura.totalTransferencia | number_format(2,",",".") }}

#} {# {% endif %}#} {# {% if factura.totalCuentaCorriente > 0 %}#} {#

CUENTA CORRIENTE ${{ factura.totalCuentaCorriente | number_format(2,",",".") }}

#} {# {% endif %}#} {# {% if factura.totalMutual > 0 %}#} {#

MUTUAL ${{ factura.totalMutual | number_format(2,",",".") }}

#} {# {% endif %}#} {# {% if factura.totalTarjeta > 0 %}#} {#

TARJETA ${{ factura.totalTarjeta | number_format(2,",",".") }}

#} {# {% endif %}#} {# {% if factura.totalEfectivo > 0 %}#} {#

EFECTIVO ${{ factura.totalEfectivo | number_format(2,",",".") }}

#} {# {% endif %}#} {# {% if factura.totalQr > 0 %}#} {#

QR ${{ factura.totalQr | number_format(2,",",".") }}

#} {# {% endif %}#} {# {% if factura.aumentoFormaPago > 0 %}#} {#

Aumento FORMA DE PAGO ${{ factura.aumentoFormaPago | number_format(2,",",".") }}

#} {# {% endif %}#} {# {% endif %}#} {# {% if (factura.porcentajeDesc > 0) or (factura.descuentoFormaPago>0) or (factura.descuentoMonto>0) %}#} {#
#} {#

DESCUENTOS APLICADOS

#} {# {% if factura.porcentajeDesc > 0 %}#} {#

DESCUENTO POR PAGO EFECTIVO -${{ factura.descuentoEfectivo | number_format(2,",",".") }}

#} {# {% endif %}#} {# {% if factura.descuentoMonto > 0 %}#} {#

DESCUENTO GENERAL -${{ factura.descuentoMonto | number_format(2,",",".") }}

#} {# {% endif %}#} {# {% if factura.totaltarjeta>0 %}#} {# {% if factura.descuentoFormaPago > 0 %}#} {#

DESCUENTO POR MEDIOS DE PAGO -${{ factura.descuentoFormaPago | number_format(2,",",".") }}

#} {#

TOTAL DESCUENTOS
-${{ (factura.descuentoFormaPago + factura.descuentoEfectivo) | number_format(2,",",".") }}

#} {# {% endif %}#} {# {% endif %}#} {# {% if factura.totalQr>0 %}#} {# {% if factura.descuentoFormaPago > 0 %}#} {#

DESCUENTO POR MEDIOS DE PAGO -${{ factura.descuentoFormaPago | number_format(2,",",".") }}

#} {#

TOTAL DESCUENTOS
-${{ (factura.descuentoFormaPago + factura.descuentoEfectivo) | number_format(2,",",".") }}

#} {# {% endif %}#} {# {% endif %}#} {# {% endif %}#} {# {% if factura.formaPago == 'contado' %}#} {#
Nota de Credito a CONTADO
#} {# {% elseif factura.formaPago == 'cuenta' %}#} {#
Nota de Credito a Cuenta Corriente
#} {# {% endif %}#} {# {% endif %}#} {#
#}
{# CONTENIDO PRINCIPAL #}
{% if datosFinanciera %}
DETALLES FINANCIERA
FINANCIERA {{datosFinanciera.financiera.nombre}}
PLAN DE PAGO {{datosFinanciera.planPago.nombrePlan}}
CUOTAS {{datosFinanciera.cuotas}}
MONTO {{datosFinanciera.monto}}
MONTO DE CUOTAS {{datosFinanciera.MontoCuotas}}
AUMENTO {{datosFinanciera.aumentoFormaPago}}
{% endif %} {% if datosMutual %}
DETALLES MUTUAL
MUTUAL {{datosMutual.mutual.nombre}}
PLAN DE PAGO {{datosMutual.planPago.nombrePlan}}
CUOTAS {{datosMutual.planPago.cantSInteres}}
MONTO {{datosMutual.monto}}
MONTO DE CUOTAS {{datosMutual.MontoCuotas}}
AUMENTO {{((datosMutual.MontoCuotas * datosMutual.planPago.cantSInteres ) - datosMutual.monto)|round }}
{% endif %} {% if datosTarjetas|length %} {% for tarjeta in datosTarjetas %}
{% if tarjeta.planPago %} {% if tarjeta.tarjeta.tipo!="DEBITO" %} {% endif %} {% endif %} {% if tarjeta.planPago and tarjeta.planPago.PorcentajeAumento > 1 %} {% else %} {% endif %} {% if tarjeta.descuento>0 %} {% endif %}
DETALLES TARJETA
MODALIDAD {{tarjeta.tarjeta.tipo}}
TIPO {{tarjeta.tarjeta.descripcion}}
PLAN DE PAGO {{tarjeta.planPago.nombrePlan}}
CUOTAS {{tarjeta.cantCuotas}}
MONTO CUOTAS {{tarjeta.MontoCuotas}}
MONTO {{tarjeta.monto}}
AUMENTO{{((tarjeta.MontoCuotas * tarjeta.planPago.cantSInteres ) - tarjeta.monto)|round }}0
DESCUENTO {{tarjeta.descuento}}
NUMERO TARJETA {{tarjeta.numero}}
LOTE {{tarjeta.lote}}
TICKET/CUPON {{tarjeta.ticket}}
{% endfor %} {% endif %} {% if factura.formaPago == 'DI' and factura.totalEfectivo > 0 %}
PAGO EN EFECTIVO
TOTAL SIN DESCUENTO {{ ((factura.subtotal - factura.totaltarjeta - factura.totalFinanciera - factura.totalMutual - factura.totalQr - factura.totalTransferencia - factura.totalCuentaCorriente - factura.descuentoFormaPago ) ) | number_format(2,",",".") }}
DESCUENTO {{((factura.subtotal - factura.totaltarjeta - factura.totalFinanciera - factura.totalMutual - factura.totalQr - factura.totalTransferencia - factura.totalCuentaCorriente - factura.descuentoFormaPago )*(factura.porcentajeDesc/100) ) | number_format(2,",",".") }}
TOTAL EFECTIVO {{factura.totalEfectivo}}
{% endif %} {% if factura.formaPago == 'DI' and factura.totalCuentaCorriente > 0 %}
PAGO EN CUENTA CORRIENTE
TOTAL CUENTA CORRIENTE {{factura.totalCuentaCorriente}}
CUOTAS {{factura.cuotasCuentaCorriente}}
{% endif %} {% if factura.formaPago == 'QR' or ( factura.formaPago == 'DI' and factura.totalQr > 0 ) %}
{% for pqr in factura.pagosQR %} {% endfor %}
DETALLES PAGO QR
SERVICIO MONTO DESCUENTO TOTAL
{{pqr.qr.nombre}} $ {{pqr.monto | number_format(2,",",".") }} $ {{pqr.descuento | number_format(2,",",".") }} $ {{(pqr.monto - pqr.descuento) | number_format(2,",",".") }}
{% endif %} {% if factura.formaPago == 'TRAN' %}
DETALLES PAGO
SERVICIO Transferencia
MONTO $ {{factura.totalTransferencia | number_format(2,",",".") }}
{% endif %}
{# #} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {# #}
DEPOSITO DESTINO | DETALLE DEL PEDIDO
NRO. FACTURA {{ factura.codfactura }}
NRO. COMPROBANTE#} {# {% if factura.primerComprobante %}#} {# {{ factura.primerComprobante.nroComp }}#} {# {% endif %}#} {#
FECHA {{ factura.fechaOperacion | date('d/m/Y') }}
DEPOSITO DESTINO {{ factura.deposito.nombre }}
DEPOSITO DE ORIGEN {{ factura.vendedor.id }}
DIRECCION {{ factura.deposito.domicilio }}
TELEFONO CELULARL {{ factura.deposito.TeleCelular }}
TELEFONO COMERCIAL {{ factura.deposito.telefonofijo }}
TEL. CELULAR#} {# {{ factura.cliente.caracTelcel }} {{ factura.cliente.telefonoCelular }}#} {#
E-MAIL {{ factura.deposito.id }} {{ factura.deposito.email }}
SUBTOTAL {{ factura.subtotal }}
PORCENTAJE AUMENTO {{ factura.porcentajeAum }}
PORCENTAJE DESCUENTO {{ factura.porcentajeDesc }}
AUMENTO POR FORMA DE PAGO {{ factura.aumentoFormaPago }}
DESCUENTO POR FORMA DE PAGO {{ factura.descuentoFormaPago }}
TOTAL {{ factura.totalFactura }}
#} {#
SALDO ACTUAL EN CUENTA CORRIENTE = $#} {# #} {# {% if factura.cliente.cuentaCorriente %}#} {# {{ factura.cliente.cuentaCorriente.monto | number_format(2,",",".") }}#} {# {% else %}#} {# 0,00#} {# {% endif %}#} {# #} {#
#} {#
{% set baseimponible = 0 %} {% set precioTotal = 0 %} {% for factulinea in factura.factulineas %} {% set precio = factulinea.precioManual ? factulinea.precioManual : factulinea.precio %} {% set baseimponible = baseimponible + factulinea.importe %} {% endfor %}
CANT. CODIGO DESCRIPCION P.UNIT IMPORTE
{{ factulinea.cantidad }} {% if factulinea.articulo %}{{ factulinea.articulo.codigo }}{% endif %} {% if factulinea.articulo %}{{ factulinea.articulo.descripcionAmpliada }}{% endif %} $ {{ precio | number_format(2,",",".") }} {# {% if factura.porcentajeDesc > 0 %}#} {# {{ ( precio - ( precio * factura.porcentajeDesc /100 ) ) | number_format(2,",",".") }}#} {# {% endif %}#} {# {% if factura.porcentajeAum > 0 %}#} {# #}{# porcentajeDesc ??? #} {# {{ ( precio + ( precio * factura.porcentajeDesc /100 ) ) | number_format(2,",",".") }}#} {# {% endif %}#} {# {% if not factura.porcentajeAum and not factura.porcentajeAum %}#} {# {{ precio | number_format(2,",",".") }}#} {# {% endif %}#} $ {{ factulinea.importe | number_format(2,",",".") }}
{% set baseimpuestos = baseimponible * ( factura.iva /100) %} {% set precioTotal = baseimponible + baseimpuestos %}
{% if factura.comprobante and factura.primerComprobante(true) %} {{ factura.primerComprobante(true).codigoQRUri }} {% endif %} {% endblock %} {% block javascripts %} {{ encore_entry_script_tags('facturacion_ver_factura') }} {% endblock %}