{% extends 'base.html.twig' %} {% block title %}Imprimir Documento {{ documento.serie ? documento.serie ~ '-' : '' }}{{ documento.numero }}{% endblock %} {# Hide sidebar and header for print view #} {% block sidebar %}{% endblock %} {% block nav_header %}{% endblock %} {% block breadcrumb %}{% endblock %} {% block content_header %}{% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block body %}
Decreto 10-2012, Ley de Actualización Tributaria
Agente de Retención
{% else %}Sistema de Cuentas por Pagar
{% endif %}{{ documento.documentoPadre.proveedor.razonSocial }}
NIT: {{ documento.documentoPadre.proveedor.nit }}
{% if documento.documentoPadre.proveedor.direccion %}{{ documento.documentoPadre.proveedor.direccion }}
{% endif %} {% else %}{{ documento.proveedor.razonSocial }}
NIT: {{ documento.proveedor.nit }}
{% if documento.proveedor.direccion %}{{ documento.proveedor.direccion }}
{% endif %} {% endif %}Emisión: {{ documento.fechaEmision|date('d/m/Y') }}
{% if documento.tipoDocumento.codigo != 'RET' %}Recepción: {{ documento.fechaRecepcion|date('d/m/Y') }}
Vencimiento: {{ documento.fechaVencimiento|date('d/m/Y') }}
{% endif %}Moneda: {{ documento.moneda.codigo }}
| # | Concepto | {% if documento.tipoDocumento.codigo == 'RET' %}Base Imponible | Tasa % | Impuesto Retenido | {% else %}Cant. | Precio Unit. | Subtotal | Impuesto | Total | {% endif %}
|---|---|---|---|---|---|---|---|---|---|
| {{ linea.linea }} | {{ linea.descripcion }} | {% if documento.tipoDocumento.codigo == 'RET' %} {# Asumiendo que para RET: Cantidad=1, Precio=Monto Retenido. Pero necesitamos la BASE. En la logica actual de creacion RET, no guardamos la base explicita en linea. Usaremos el Documento Padre (Referencia) o calcularemos inverso si es posible, pero por ahora mostraremos el Total como Retencion #}{{ (linea.totalLinea / (documento.tipoCambio ?: 1))|number_format(2, '.', ',') }} | - | {{ linea.totalLinea|number_format(2, '.', ',') }} | {% else %}{{ linea.cantidad|number_format(2, '.', ',') }} | {{ linea.precioUnitario|number_format(2, '.', ',') }} | {{ (linea.cantidad * linea.precioUnitario)|number_format(2, '.', ',') }} | {{ linea.impuestoMonto|number_format(2, '.', ',') }} | {{ linea.totalLinea|number_format(2, '.', ',') }} | {% endif %}
{{ documento.observaciones }}