@extends('blank') @section('content') @include('componentes.r_header')
Nro Orden:
{{ $datos->ingreso->nro }}
Lote/Nro. Bobina:
{{ $datos->lote }}
Producto:
{{ $datos->producto->nombre }}
Cantidad Ingresado:
{{ $datos->cantidad }}
Cantidad Actual:
{{ round($datos->cantidad_actual,2) }}
Cantidad Vendido:
{{ round($datos->cantidad - $datos->cantidad_actual,2) }}
@php $lon = 0; $total = 0; @endphp
@if ($datos->producto->es_bobina) @else @endif @foreach ($datos->dtventas as $item) {{-- --}} {{-- --}} @if ($datos->producto->es_bobina) @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 @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 { if ($datos->producto->es_bobina) { $lon += $item->cantidad; } else { // conversion de unidades $lon += ($item->cantidad * $item->factor) / $datos->factor; } $total += ($item->cantidad*$item->precio)-$item->descuento; } @endphp @endforeach
NRO. VENTA FECHA CLIENTE CANT. UNIDAD TIPO LONG. (Mt) TOTAL (ML) PRECIO UNIT. DESC. SUB TOTAL
NRO. VENTA FECHA CLIENTE CANT. UNIDAD PRECIO UNIT. DESC. SUB TOTAL
{{ $item->venta->txt_nro }} {{ date('d/m/Y',strtotime($item->venta->fecha_registro)) }} @if ($item->venta->tipo_venta == 'SUCURSAL') {{ $item->venta->clsucursal->nombre }} @else {{ $item->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 }}{{ $item->unidad->sigla }}{{ 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) }}
@if ($datos->producto->es_bobina)
TOTAL (ML):
@else
TOTAL ({{ $datos->unidad->sigla }}):
@endif
{{ $lon }}
TOTAL USADO (ML):
{{ round($datos->cantidad - $datos->cantidad_actual,2) }}
DIF. CUMBRERAS (ML):
{{ round($lon - ($datos->cantidad - $datos->cantidad_actual),2) }}
@endsection @section('scripts') @endsection