@extends('cr_blank') @section('content') @include('componentes.pedido_header') @if ($datos->tipo_venta == 'SUCURSAL') {{-- --}} {{-- --}} {{-- --}}
Fecha:
{{ date('d/m/Y',strtotime($datos->fecha_registro)) }}
NIT/CI:
Nombre/Razón social:
{{ $datos->clsucursal->nombre }}
Dirección:{{ $datos->cliente->direccion }}
Telf/Cel.:
{{ $datos->clsucursal->telefono }}
@else {{-- --}} {{-- --}}
Fecha:
{{ date('d/m/Y',strtotime($datos->fecha_registro)) }}
NIT/CI:
{{ $datos->nit }}
Nombre/Razón social:
{{ $datos->razon_social }}
Dirección:{{ $datos->cliente->direccion }}
Telf/Cel.:
{{ $datos->cliente->celular }}
@endif
{{--
Detalle de venta.
--}} {{-- --}} @if ($datos->tipo_venta == 'SUCURSAL') @endif @if ($datos->tipo_venta == 'SUCURSAL') @else @endif @php $total_desc = 0; $total_aux = 0; $total_ml = 0; @endphp @foreach ($datos->detallecliente as $item) @if ($datos->tipo_venta == 'SUCURSAL') @endif @if ($datos->tipo_venta == 'SUCURSAL') @if ($item->producto->es_bobina && $item->longitud) @if ($item->factor > 1) @else @endif @else @endif @else @php $nro = $item->lote->ingreso->nro; // Suponiendo que es un string o número $ultimos5 = substr($nro, -5); @endphp @if ($item->producto->es_bobina && $item->longitud) @if ($item->factor > 1) @else @endif @else {{-- --}} @endif @endif {{-- --}} @if ($datos->tipo_venta == 'SUCURSAL') @else @if ($item->producto->es_bobina) @if ($item->tipo->id == 6 || $item->tipo->id == 7) @else @endif @php $total_ml = $item->longitud?$item->longitud*$item->cantidad_real:$item->cantidad_real; @endphp @else @endif @endif @if ($item->longitud) @else @endif @php $total_desc += $item->descuento; $total_aux += $item->total - $item->descuento; @endphp @endforeach @foreach ($datos->otrodetalle ?? [] as $item) @php $total_aux += $item->cantidad * $item->precio; @endphp @endforeach {{-- --}} @if ($datos->descuento + $total_desc > 0) {{-- --}} @if ($datos->descuento) @endif @endif @if ($datos->monto_transporte) @endif
N.NRO. ORDEN CÓDIGO BOBINACANTIDAD UNIDAD DESCRIPCIÓNLONGITUD (Mt) TOTAL (ML)PRECIO UNITARIO DESC SUB TOTAL
{{ ++$i }}{{ $item->lote->ingreso->nro }} {{ $item->lote->lote }} {{ fmod($item->cantidad_real, 1) == 0 ? intval($item->cantidad_real) : $item->cantidad_real }} {{ $item->unidad->sigla }}PZA{{ $item->producto->nombre }} ({{ $item->tipo->nombre }}){{ $item->unidad->sigla }} {{ $item->producto->nombre }}{{ $item->unidad->sigla }}PZA{{ $item->producto->nombre }} ({{ $item->tipo->nombre }}) ({{ $ultimos5 }}) ({{ $item->lote->lote }}){{ $item->unidad->sigla }} {{ $item->producto->nombre }} ({{ $ultimos5 }}) ({{ $item->lote->lote }}){{ $item->producto->nombre }} {{ $item->lote->lote }}{{ date('d-m-Y H:i',strtotime($item->fecha)) }}{{ $item->longitud?$item->longitud:'' }}{{ ($item->longitud?$item->longitud*$item->cantidad_real:$item->cantidad_real)*1.08 }}{{ $item->longitud?$item->longitud*$item->cantidad_real:$item->cantidad_real }}{{ number_format($item->precio_aux,2) }} {{ number_format($item->descuento,2) }}{{ number_format($item->total - $item->descuento,2) }}{{ number_format($item->total - $item->descuento,2) }}
{{ ++$i }} {{ $item->cantidad }} {{ $item->detalle }} {{ number_format($item->precio,2) }} {{ number_format($item->cantidad * $item->precio,2) }}
Bs.Bs. {{ number_format($total_desc,2) }} {{ number_format($total_aux,2) }}
TOTAL DESC. Bs. {{ number_format($total_desc,2) }}
DESC. GRAL. Bs. {{ number_format($datos->descuento,2) }}
TRANSPORTE. Bs. {{ number_format($datos->monto_transporte,2) }}
TOTAL Bs. {{ number_format($datos->total,2) }}
{{ $txt_total }}
@if ($total_ml) @else @endif
@if ($datos->estado == 'ANULADO')
ANULADO
@endif
Peso aprox.
{{ number_format($peso,2) }}
Total ML
{{ $total_ml }}
@if ($datos->observacion)
Observación: {{ $datos->observacion }}
{{--
{{ $datos->observacion }}
--}} @endif
{{--
--}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{--
_________________________ _________________________ _________________________
Elaborado por: Interesado: Autorizado por:
--}} @endsection @section('scripts') @endsection