Consolidado de items por cliente/vendedor - Totales

@inject('reportService', 'Modules\Report\Services\ReportService') @if(isset($params['sellers'])) @php $sellers = json_decode($params['sellers']); @endphp @if(count($sellers) > 0) @endif @endif @if(isset($params['person_id'])) @endif

Empresa: {{$company->name}}

Ruc: {{$company->number}}

Establecimiento: {{$establishment->address}} - {{$establishment->department->description}} - {{$establishment->district->description}}

Usuario(s): @foreach ($sellers as $seller_id) - {{$reportService->getUserName($seller_id)}} @endforeach

Cliente: {{$reportService->getPersonName($params['person_id'])}}

@if(!empty($records))
@php $acum_total=0; $acu_total_sale = 0; @endphp @foreach($records as $key => $value) @php $acum_total += $value['quantity']??0; $acu_total_sale += $value['total_sale']??0; @endphp @endforeach
# Cod. Interno Producto Unidad Categoria Cantidad Total Total de venta
{{ $loop->iteration }} {{$value['item_internal_id']}} {{$value['item_description']}} {{$value['item_unit_type_id']}} {{$value['category']}} {{$value['quantity']}} {{$value['total_sale']}}
Total {{$acum_total}} {{$acu_total_sale}}
@else

No se encontraron registros.

@endif