@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_neto = 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 @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 @if ($item->descuento > 0) @else @endif @php $total_desc += $item->descuento; $total_neto += $item->total; $total_aux += $item->total - $item->descuento; @endphp @endforeach @foreach ($datos->otrodetalle ?? [] as $item) @if ($item->longitud) @else @endif @if ($item->longitud) @else @endif @php if ($item->longitud) { $total_neto += $item->cantidad * $item->longitud * $item->precio; $total_aux += $item->cantidad * $item->longitud * $item->precio_aux; } else { $total_neto += $item->cantidad * $item->precio; $total_aux += $item->cantidad * $item->precio_aux; } @endphp @endforeach @if (number_format($total_aux,2) != number_format($total_neto,2)) {{-- --}} @endif @if ($datos->descuento + $total_desc > 0) @if ($total_desc > 0) @endif @if ($datos->descuento > 0) @endif @endif @if ($datos->monto_transporte) @endif
N.NRO. ORDEN CÓDIGO BOBINACANT UNIDAD DESCRIPCIÓNLONGITUD (Mt) TOTAL (ML)PRECIO UNITARIO SUB TOTAL DESC TOTAL NETO
{{ ++$i }}- - {{ 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 }}){{ $item->unidad->sigla }} {{ $item->producto->nombre }}{{ 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 }} @if (round((float) $item->precio, 2) != round((float) $item->precio_aux, 2)) {{ number_format($item->precio, 2) }} / {{ number_format($item->precio_aux, 2) }} @else {{ number_format($item->precio_aux, 2) }} @endif {{ number_format($item->total - $item->descuento,2) }}{{ number_format($item->total - $item->descuento,2) }}{{ number_format($item->descuento,2) }}
{{ $item->porcentaje }} %
{{ number_format(0,2) }}{{ number_format($item->total,2) }}
{{ ++$i }} {{ $item->cantidad }} {{ $item->detalle }}{{ $item->longitud }} {{ $item->cantidad * $item->longitud }} {{ number_format($item->precio,2) }} {{ number_format($item->cantidad * $item->longitud * $item->precio,2) }}{{ number_format($item->cantidad * $item->precio,2) }}
Bs.Bs. {{ number_format($total_neto,2) }}
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($total_aux,2) }}
{{ $txt_total }}
{{--
@if ($datos->estado == 'ANULADO')
ANULADO
@endif
Peso aprox.
@if ($total_ml > 0)
Total ML
@endif
{{ number_format($peso,2) }}
@if ($total_ml > 0)
{{ $total_ml }}
@endif
--}} @if ($datos->observacion)
Observación: {{ $datos->observacion }}
{{--
{{ $datos->observacion }}
--}} @endif
{{--
--}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{--
_________________________ _________________________ _________________________
Elaborado por: Interesado: Autorizado por:
--}} @endsection @section('scripts') @endsection