@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; $peso_producto = 0; $peso_neto = 0; $peso_bruto = 0; @endphp @foreach ($datos->detalleventa as $item) @if ($datos->tipo_venta == 'SUCURSAL') @endif @if ($datos->tipo_venta == 'SUCURSAL') @if ($item->producto->es_bobina && $item->longitud) @else @endif @else @php $nro = $item->lote ? $item->lote->ingreso->nro : ''; // Suponiendo que es un string o número $ultimos5 = substr($nro, -5); $txt_lote = ''; if ($item->lote) { $txt_lote = '(' . $ultimos5 . ') (' . $item->lote->lote . ')'; } @endphp @if ($item->producto->es_bobina && $item->longitud) @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 @else @endif @endif {{-- --}} {{-- @if ($item->longitud) @else @endif --}} @php $total_desc += $item->descuento; if ($item->lote) { $peso_neto += $item->lote->peso_neto; $peso_bruto += $item->lote->peso; } @endphp @endforeach {{-- --}} @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 ? $item->lote->ingreso->nro : '' }} {{ $item->lote ? $item->lote->lote : '' }}{{ $item->cantidad }}PZA {{ $item->producto->nombre }} ({{ $item->tipo->nombre }}){{ $item->unidad->sigla }} {{ $item->producto->nombre }}PZA {{ $item->producto->nombre }} ({{ $item->tipo->nombre }}) {{ $ultimos5 ? '(' . $ultimos5 . ')' : '' }} {{ $item->lote ? '(' . $item->lote->lote . ')' : '' }}{{ $item->unidad->sigla }} {{ $item->producto->nombre }} {{ $txt_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:$item->cantidad)*1.08 }}{{ $item->longitud?$item->longitud*$item->cantidad:$item->cantidad }}{{ number_format($item->precio,2) }} {{ number_format($item->descuento,2) }}{{ number_format($item->cantidad * $item->longitud * $item->precio - $item->descuento,2) }}{{ number_format($item->cantidad * $item->precio - $item->descuento,2) }}
TOTAL DESC. Bs. {{ number_format($total_desc,2) }}
TRANSPORTE. Bs. {{ number_format($datos->monto_transporte,2) }}
TOTAL Bs. {{ number_format($datos->total,2) }}
{{--
{{ $txt_total }}
{{ $datos->tipopago->nombre }}
--}} {{-- --}}
@if ($datos->estado == 'ANULADO')
ANULADO
@endif
{{--
Peso aprox.
--}}
{{ number_format($peso,2) }}
@if ($peso_neto > 0 || $peso_bruto > 0) {{--
Peso de Bobinas
Peso Neto: {{ number_format($peso_neto,2) }}
Peso Bruto: {{ number_format($peso_bruto,2) }}
--}} @endif @if ($peso_producto > 0) {{--
Peso de Producto
Peso: {{ number_format($peso_producto,3) }}
--}} @endif {{-- @if ($datos->observacion)
Observación:
{{ $datos->observacion }}
@endif --}}
{{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}}
_________________________ _________________________ _________________________
Elaborado por: Interesado:Entregado por:
{{-- --}} @endsection @section('scripts') @endsection