Consolidado de items por cliente/vendedor
Empresa: {{$company->name}} |
Ruc: {{$company->number}} |
|||
Establecimiento: {{$establishment->address}} - {{$establishment->department->description}} - {{$establishment->district->description}} |
@inject('reportService', 'Modules\Report\Services\ReportService')
{{-- @if($params['seller_id'])
Usuario: {{$reportService->getUserName($params['seller_id'])}} |
@endif --}}
@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
@elseif( isset($params['user_type']) && isset($params['user_id']) )
@php
$sellers = \App\CoreFacturalo\Helpers\Template\ReportHelper::getSellersFromRequest( $params['user_type'] , $params['user_id'] );
// user_id Creador del documento
// seller_id Usuario Asignado
@endphp
@if(count($sellers) > 0)
Usuario(s): {{-- Creador --}} @if(isset($sellers['user_id'])) @foreach ($sellers['user_id'] as $seller) - {{ $seller }} @endforeach @endif {{-- Asignado --}} @if(isset($sellers['seller_id'])) @foreach ($sellers['seller_id'] as $seller) - {{ $seller }} @endforeach @endif |
@endif
@endif
@if($params['person_id'])
Cliente: {{$reportService->getPersonName($params['person_id'])}} |
@endif
# | Documento | Cod. Interno | Unidad | Categoria | Producto | Cantidad | Total de venta | ||
---|---|---|---|---|---|---|---|---|---|
{{$loop->iteration}} | {{$value->series}}-{{$value->number}} | {{$value->relation_item->internal_id}} | {{ (property_exists( $value->item,'presentation') && $value->item->presentation) ? $value->item->presentation->unit_type_id : $value->relation_item->unit_type_id}} | {{ optional($value->relation_item->category)->name }} | {{--{{$category}} | --}} {{--{{$value->relation_item->unit_type_id}} | --}}{{$value->item->description}} | {{$value->quantity}} | {{$total_sale}} |
Total | {{$acum_total}} | {{$acu_total_sale}} |
No se encontraron registros.