@extends('layouts.app') @section('titulo', 'Pedido '.$pedido->numero) @section('botones') @if(($config->facturacion_electronica_pe ?? false) && in_array($pedido->estado, ['cobrado','entregado','preparado'])) @php $compExistente = \App\Models\ComprobanteElectronico::where('pedido_id', $pedido->id)->first(); @endphp @if($compExistente) Ver comprobante {{ $compExistente->numero_completo }} @else Emitir comprobante SUNAT @endif @endif Imprimir ticket Volver @endsection @section('contenido')
| Producto | Cantidad | Precio | Total |
|---|---|---|---|
| {{ $d->nombre_producto }}@if($d->observaciones) {{ $d->observaciones }}@endif |
{{ $d->cantidad }} | {{ $config->formatearPrecio($d->precio_unitario) }} | {{ $config->formatearPrecio($d->total) }} |
| Subtotal | {{ $config->formatearPrecio($pedido->subtotal) }} | ||
| Descuento | -{{ $config->formatearPrecio($pedido->descuento) }} | ||
| Envío | {{ $config->formatearPrecio($pedido->coste_envio) }} | ||
| IVA | {{ $config->formatearPrecio($pedido->total_iva) }} | ||
| TOTAL | {{ $config->formatearPrecio($pedido->total) }} | ||
| Fecha | Método | Importe |
|---|---|---|
| {{ $pg->fecha->format('d/m/Y H:i') }} | {{ ucfirst($pg->metodo) }} | {{ $config->formatearPrecio($pg->importe) }} |