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 |
---|