@php
$moneda = $empresaGlobal->moneda ?? '$';
$esRetencion = $comprobante->tipo_documento === '07';
@endphp
{{ $empresaGlobal->nombre_comercial ?? $comprobante->emisor_razon_social }}
{{ $comprobante->emisor_razon_social }}
RUC: {{ $comprobante->emisor_ruc }}
{{ $comprobante->emisor_dir_matriz }}
{{ strtoupper($comprobante->tipo_documento_nombre) }}
{{ $comprobante->numero_completo }}
Ambiente: {{ strtoupper($comprobante->ambiente_nombre) }}
Fecha: {{ $comprobante->fecha_emision->format('d/m/Y') }}
{{ $esRetencion ? 'SUJETO RETENIDO' : 'CLIENTE' }}: {{ $comprobante->receptor_razon_social }}
{{ $comprobante->receptor_tipo_label }}: {{ $comprobante->receptor_identificacion }}
@if($esRetencion)
@foreach($comprobante->detalles as $d)
{{ \App\Models\ComprobanteDetalle::CODIGOS_RETENCION[$d->ret_codigo] ?? $d->descripcion }}
Base {{ number_format($d->ret_base_imponible,2) }} x {{ number_format($d->ret_porcentaje,2) }}%
|
{{ number_format($d->ret_valor_retenido, 2) }} |
@endforeach
TOTAL RETENIDO{{ $moneda }}{{ number_format($comprobante->total_retenido, 2) }}
@else
@foreach($comprobante->detalles as $d)
{{ $d->descripcion }}
{{ number_format($d->cantidad, 2) }} x {{ number_format($d->precio_unitario, 4) }}
|
{{ number_format($d->precio_total_sin_impuesto, 2) }} |
@endforeach
Subtotal sin impuestos{{ $moneda }}{{ number_format($comprobante->total_sin_impuestos, 2) }}
@if($comprobante->total_descuento > 0)
Descuento-{{ $moneda }}{{ number_format($comprobante->total_descuento, 2) }}
@endif
IVA{{ $moneda }}{{ number_format($comprobante->total_iva, 2) }}
TOTAL{{ $moneda }}{{ number_format($comprobante->importe_total, 2) }}
@endif
CLAVE DE ACCESO:
{{ $comprobante->clave_acceso }}
@if($comprobante->numero_autorizacion)
AUTORIZACIÓN:
{{ $comprobante->numero_autorizacion }}
@endif
@if($comprobante->estado_sri === 'AUTORIZADO')
COMPROBANTE AUTORIZADO POR EL SRI
@else
ESTADO: {{ str_replace('_',' ',$comprobante->estado_sri) }}
@endif
@if($empresaGlobal && $empresaGlobal->mensaje_ticket)
{{ $empresaGlobal->mensaje_ticket }}
@endif
Consulte en www.sri.gob.ec