HISTORICO STOCK |
|||||||
HASTA LA FECHA: |
{{ $additionalData['date'] }} | ||||||
RUC: |
{{ $company->number }} | ||||||
APELLIDOS Y NOMBRES, DENOMINACIÓN O RAZÓN SOCIAL: |
{{ $company->name }} |
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'] }} | @php $rest_stock = floatval($row['purchase_stock']) + floatval($row['sale_stock']); @endphp{{ 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'] }} | @php $rest_val = floatval($row['purchase_val']) + floatval($row['sale_val']); @endphp{{ number_format($rest_val, 2, '.', '') }} | {{ number_format($row['past_val'], 2, '.', '') }} | {{ number_format(floatval($row['past_val']) + $rest_val, 2, '.', '') }} | {{-- 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||
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'] }} |