Artículos Vendidos
Empresa {{$company->name}}
Establecimiento {{$establishment->description}}
Teléfono {{$establishment->telephone}}
Email {{$establishment->email}}
Dirección {{$establishment->address}}
@if($records->count() > 0) @php $total = 0; $total_tax = 0; $total_utility = 0; $total_quantity = 0; $total_net_value = 0; $total_cost = 0; @endphp @foreach($records as $value) @php $row = $value->getDataReportSoldItems(); $total = $total + $row['total']; $total_tax = $total_tax + $row['total_tax']; $total_utility = $total_utility + $row['utility']; $total_quantity = $total_quantity + $row['quantity']; $total_net_value = $total_net_value + $row['net_value']; $total_cost = $total_cost + $row['cost']; @endphp @endforEach
Tipo Código Artículo Cantidad Costo Neto Utilidad Impuesto Total
{{ $row['type_name'] }} {{ $row['internal_id'] }} {{ $row['name'] }} {{ $row['quantity'] }} {{ $row['cost'] }} {{ $row['net_value'] }} {{ $row['utility'] }} {{ $row['total_tax'] }} {{ $row['total'] }}
TOTALES {{ $total_quantity }} {{ number_format($total_cost, 2) }} {{ number_format($total_net_value, 2) }} {{ number_format($total_utility, 2) }} {{ number_format($total_tax, 2) }} {{ number_format($total, 2) }}
@endif