@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 }} |
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 }} |
| N. | @if ($datos->tipo_venta == 'SUCURSAL')NRO. ORDEN | CÓDIGO BOBINA | @endifCANTIDAD | UNIDAD | DESCRIPCIÓN | @if ($datos->tipo_venta == 'SUCURSAL') @elseLONGITUD (Mt) | TOTAL (ML) | @endif {{--PRECIO UNITARIO | DESC | SUB TOTAL | --}}|||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ ++$i }} | @if ($datos->tipo_venta == 'SUCURSAL'){{ $item->lote ? $item->lote->ingreso->nro : '' }} | {{ $item->lote ? $item->lote->lote : '' }} | @endif{{ $item->cantidad }} | @if ($datos->tipo_venta == 'SUCURSAL') @if ($item->producto->es_bobina && $item->longitud)PZA | {{ $item->producto->nombre }} ({{ $item->tipo->nombre }}) | @else{{ $item->unidad->sigla }} | {{ $item->producto->nombre }} | @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)PZA | {{ $item->producto->nombre }} ({{ $item->tipo->nombre }}) {{ $ultimos5 ? '(' . $ultimos5 . ')' : '' }} {{ $item->lote ? '(' . $item->lote->lote . ')' : '' }} | @else{{ $item->unidad->sigla }} | {{ $item->producto->nombre }} {{ $txt_lote }} | {{--{{ $item->producto->nombre }} {{ $item->lote->lote }} | --}} @endif @endif {{--{{ date('d-m-Y H:i',strtotime($item->fecha)) }} | --}} @if ($datos->tipo_venta == 'SUCURSAL') @else{{ $item->longitud?$item->longitud:'' }} | @if ($item->producto->es_bobina) @if ($item->tipo->id == 6 || $item->tipo->id == 7){{ ($item->longitud?$item->longitud*$item->cantidad:$item->cantidad)*1.08 }} | @else{{ $item->longitud?$item->longitud*$item->cantidad:$item->cantidad }} | @endif @else@endif @endif {{-- | {{ number_format($item->precio,2) }} | {{ number_format($item->descuento,2) }} | --}} {{-- @if ($item->longitud){{ number_format($item->cantidad * $item->longitud * $item->precio - $item->descuento,2) }} | @else{{ number_format($item->cantidad * $item->precio - $item->descuento,2) }} | @endif --}} @php $total_desc += $item->descuento; if ($item->lote) { $peso_neto += $item->lote->peso_neto; $peso_bruto += $item->lote->peso; } @endphp
| TOTAL DESC. Bs. | {{ number_format($total_desc,2) }} | ||||||||||||||||||||
| TRANSPORTE. Bs. | {{ number_format($datos->monto_transporte,2) }} | ||||||||||||||||||||
| TOTAL Bs. | {{ number_format($datos->total,2) }} | ||||||||||||||||||||
|
@if ($datos->estado == 'ANULADO')
ANULADO
@endif
|
{{-- Peso aprox. --}}
|
{{-- {{ number_format($peso,2) }} | --}}
| _________________________ | _________________________ | {{-- | _________________________ | --}}
| Elaborado por: | Interesado: | {{----}} | Entregado por: |