@extends('blank') @section('content') @include('componentes.r_header')
Nro Orden:
{{ $lote->ingreso->nro }}
Lote/Nro. Bobina:
{{ $lote->lote }}
Producto:
{{ $lote->producto->nombre }}
Cantidad:
{{ $lote->cantidad }}
Cantidad Actual:
{{ round($lote->cantidad_actual,2) }}
@php $lon = 0; $total = 0; @endphp
@foreach ($datos as $venta) {{--
NRO. VENTA FECHA CLIENTE CANT. UNIDAD TIPO LONG. (Mt) TOTAL (ML) PRECIO UNIT. DESC. SUB TOTAL
@if ($venta->tipo_venta == 'SUCURSAL') SUCURSAL: @else CLIENTE: @endif
@if ($venta->tipo_venta == 'SUCURSAL') {{ $venta->clsucursal->nombre }} @else {{ $venta->razon_social }} @endif
Fecha:
{{ date('d/m/Y',strtotime($venta->fecha_registro)) }}
Telf/Cel.:
{{ $venta->cliente->celular }}
--}} {{-- --}} @foreach ($venta->detalle as $item) {{-- --}} {{-- --}} @if ($item->producto->es_bobina && $item->longitud) {{-- --}} @else @endif {{-- --}} {{-- --}} @if ($item->tipo) @if ($item->tipo->id == 6 || $item->tipo->id == 7) @else @endif @else @endif @if ($item->longitud) @else @endif @php if ($item->longitud) { if ($item->tipo->id == 6 || $item->tipo->id == 7) { $lon += ($item->longitud*$item->cantidad)*1.08; } else { $lon += ($item->longitud*$item->cantidad); } $total += ($item->longitud*$item->cantidad*$item->precio)-$item->descuento; } else { $lon += $item->cantidad; $total += ($item->cantidad*$item->precio)-$item->descuento; } @endphp @endforeach @endforeach
CLIENTE CANTIDAD UNIDAD DESCRIPCIƓN LONGITUD (Mt) TOTAL (ML) PRECIO UNITARIO DESC SUB TOTAL
{{ $venta->txt_nro }} {{ date('d/m/Y',strtotime($venta->fecha_registro)) }} @if ($venta->tipo_venta == 'SUCURSAL') {{ $venta->clsucursal->nombre }} @else {{ $venta->razon_social }} @endif {{ $item->cantidad }}{{ ++$i }}{{ $item->producto->codigo }}PZA {{ $item->tipo->nombre }}{{ $item->lote->detalle }} TIPO {{ $item->tipo->nombre }}{{ $item->unidad->sigla }} {{ $item->producto->nombre }}{{ date('d-m-Y H:i',strtotime($item->fecha)) }}{{ $item->producto->unidad->sigla }}{{ $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 (Bs):
{{ number_format($total,2) }}
TOTAL (ML):
{{ $lon }}
TOTAL USADO (ML):
{{ round($lote->cantidad - $lote->cantidad_actual,2) }}
DIF. CUMBRERAS (ML):
{{ round($lon - ($lote->cantidad - $lote->cantidad_actual),2) }}
@endsection @section('scripts') @endsection