Consolidado de items por cliente/vendedor - Totales
Empresa: {{$company->name}}
Ruc: {{$company->number}}
Establecimiento: {{$establishment->address}}
- {{$establishment->department->description}} - {{$establishment->district->description}}
@inject('reportService', 'Modules\Report\Services\ReportService')
@if(isset($params['sellers']))
@php
$sellers = json_decode($params['sellers'])
@endphp
@if(count($sellers) > 0)
Usuario(s):
@foreach ($sellers as $seller_id)
- {{$reportService->getUserName($seller_id)}}
@endforeach
@endif
@endif
@if(isset($params['person_id']))
Cliente: {{$reportService->getPersonName($params['person_id'])}}
@endif
@if(!empty($records))
@php
$acum_total=0;
$acu_total_sale = 0;
@endphp
# |
Producto |
Unidad |
Categoria |
Cantidad Total |
Total de venta |
@foreach($records as $key => $value)
{{ $loop->iteration }} |
{{$value['item_description']}} |
{{$value['item_unit_type_id']}} |
{{$value['category']}} |
{{$value['quantity']}} |
{{$value['total_sale']}} |
@php
$acum_total += $value['quantity']??0;
$acu_total_sale += $value['total_sale']??0;
@endphp
@endforeach
|
Total |
{{$acum_total}} |
{{$acu_total_sale}} |
@else
No se encontraron registros.
@endif