{{--

FORMATO 13.1: "REGISTRO DE INVENTARIO PERMANENTE VALORIZADO - DETALLE DEL INVENTARIO VALORIZADO"

--}}

HISTORICO STOCK

HASTA LA FECHA:

{{ $additionalData['date'] }}

RUC:

{{ $company->number }}

APELLIDOS Y NOMBRES, DENOMINACIÓN O RAZÓN SOCIAL:

{{ $company->name }}
@php // dd($records); // $balance_quantity = 0; // $balance_total = 0; // $balance_cost = 0; //totals // $totals = [ // 'input_quantity' => 0, // 'input_unit_price' => 0, // 'input_total' => 0, // 'output_quantity' => 0, // 'output_unit_price' => 0, // 'output_total' => 0, // 'balance_quantity' => 0, // 'balance_total' => 0, // 'balance_cost' => 0, // ]; @endphp @foreach ($records as $key => $row) @php $rest_stock = floatval($row['purchase_stock']) + floatval($row['sale_stock']); @endphp @php $rest_val = floatval($row['purchase_val']) + floatval($row['sale_val']); @endphp {{-- SALDO --}} @php // $balance_quantity += $row['quantity'] * $row['factor']; // $balance_total += $row['total'] * $row['factor']; // $balance_cost = ($balance_quantity != 0) ? round($balance_total / $balance_quantity, 4) : null; // if ($row['type'] == 'input') { // $totals['input_quantity'] += $row['input_quantity']; // $totals['input_unit_price'] += $row['input_unit_price']; // $totals['input_total'] += $row['input_total']; // } else { // $totals['output_quantity'] += $row['output_quantity']; // $totals['output_unit_price'] += $row['output_unit_price']; // $totals['output_total'] += $row['output_total']; // } // $totals['balance_quantity'] += $row['balance_quantity']; // $totals['balance_total'] += $row['balance_total_cost']; // $totals['balance_cost'] += $row['balance_unit_cost']; @endphp @endforeach {{-- --}}

FISICO

VALORADO

#

DESCRIPCION

INGRESO

SALIDA

SALDO

SALDO ANTERIOR

SALDO TOTAL

INGRESO

SALIDA

SALDO

SALDO ANTERIOR

SALDO TOTAL

{{ $key + 1 }} {{ $row['description'] }} {{ $row['purchase_stock'] }} {{ $row['sale_stock'] }} {{ number_format($rest_stock, 4, '.', '') }} {{ number_format($row['past_stock'], 4, '.', '') }} {{ number_format(floatval($row['past_stock']) + $rest_stock, 4, '.', '') }} {{ $row['purchase_val'] }} {{ $row['sale_val'] }} {{ number_format($rest_val, 2, '.', '') }} {{ number_format($row['past_val'], 2, '.', '') }} {{ number_format(floatval($row['past_val']) + $rest_val, 2, '.', '') }}
TOTALES {{ $totals['input_quantity'] }} {{ $totals['input_unit_price'] }} {{ $totals['input_total'] }} {{ $totals['output_quantity'] }} {{ $totals['output_unit_price'] }} {{ $totals['output_total'] }} {{ $totals['balance_quantity'] }} {{ $totals['balance_cost'] }} {{ $totals['balance_total'] }}