Observaciones
Guardado independiente sin recalcular la factura.
Historial
{% for item in observacionHistorial %}Sin historial de observaciones.
{% endfor %}{% extends 'base.html.twig' %} {% block title %}Detalle del Documento{% endblock %} {% block page_title %}Documento {{ documento.serie ? documento.serie ~ '-' : '' }}{{ documento.numero }}{% endblock %} {% block breadcrumb %} {% endblock %} {% block content_header %}
{{ documento.proveedor.razonSocial }} · {{ documento.tipoDocumento.codigo }} · {{ documento.moneda.codigo }} {{ documento.saldoPendiente|number_format(2, '.', ',') }}
Observaciones, desbloqueo operativo y referencias externas.
Guardado independiente sin recalcular la factura.
Sin historial de observaciones.
{% endfor %}{{ desbloqueoEstado.message }}
{% if documento.desbloqueadoHasta %}Ultimo desbloqueo: {{ documento.desbloqueadoAt ? documento.desbloqueadoAt|date('d/m/Y H:i') : '-' }} {% if documento.desbloqueadoBy %} por {{ documento.desbloqueadoBy.nombre }}{% endif %} · valido hasta {{ documento.desbloqueadoHasta|date('d/m/Y H:i') }}
{% endif %}Sin desbloqueos registrados.
{% endfor %}Referencia rapida a entradas, cambios u otros documentos externos.
Sin numero relacionado registrado.
{% endif %}Datos principales del documento
Emisión
{{ documento.fechaEmision|date('d/m/Y') }}
Recepción
{{ documento.fechaRecepcion|date('d/m/Y') }}
Vencimiento
{{ documento.fechaVencimiento|date('d/m/Y') }}
| # | Descripción | Cantidad | Precio Unit. | Subtotal | Impuesto | Total |
|---|---|---|---|---|---|---|
| {{ linea.linea }} | {{ linea.descripcion }} | {{ linea.cantidad|round(0, 'common')|number_format(0, '.', ',') }} | {{ linea.precioUnitario|number_format(2, '.', ',') }} | {{ (linea.cantidad * linea.precioUnitario)|number_format(2, '.', ',') }} | {{ linea.impuestoMonto|number_format(2, '.', ',') }} | {{ documento.moneda.codigo }} {{ linea.totalLinea|number_format(2, '.', ',') }} |
Resumen de retenciones vinculadas a este documento
{{ ret.tipo }}
Base: {{ documento.moneda.codigo }} {{ ret.base|number_format(2, '.', ',') }}
{% if documento.moneda.codigo != 'GTQ' %}Base: GTQ {{ (ret.base * documento.tipoCambio)|number_format(2, '.', ',') }}
{% endif %}Porcentaje: {{ ret.porcentaje }}{{ ret.porcentaje is not null ? '%' : '' }}
Monto: {{ documento.moneda.codigo }} {{ ret.monto|number_format(2, '.', ',') }}
{% if documento.moneda.codigo != 'GTQ' %}Monto: GTQ {{ (ret.monto * documento.tipoCambio)|number_format(2, '.', ',') }}
{% endif %}Retencion calculada
{{ documento.moneda.codigo }} {{ retencionDetalle.total|number_format(2, '.', ',') }}
{% if documento.moneda.codigo != 'GTQ' %}GTQ {{ (retencionDetalle.total * documento.tipoCambio)|number_format(2, '.', ',') }}
{% endif %}Retencion real
{{ retencionResumen.moneda }} {{ retencionResumen.monto_real|number_format(2, '.', ',') }}
{% if retencionResumen.moneda != 'GTQ' %}GTQ {{ (retencionResumen.monto_real * documento.tipoCambio)|number_format(2, '.', ',') }}
{% endif %}Estado
{{ retencionResumen.estado ?? 'Pendiente' }}
Registro de retencion SAT
No. retencion: {{ retencionResumen.codigo_sat }}
{{ pagosAplicados|length }} pago(s) aplicado(s)
| Código | Fecha | Monto | Forma de Pago | Estado |
|---|---|---|---|---|
| PAY-{{ '%05d'|format(pago.pagoId) }} | {{ pago.fecha|date('d/m/Y') }} | {{ pago.monedaCodigo }} {{ pago.monto|number_format(2, '.', ',') }} | {{ pago.formaPago }} | {% if pago.estado == 'Aplicado' %} Aplicado {% elseif pago.estado == 'Anulado' %} Anulado {% else %} {{ pago.estado }} {% endif %} |