Reporte Nota de Venta

@inject('reportService', 'Modules\Report\Services\ReportService') @if($filters['seller_id']) @endif

Empresa: {{$company->name}}

Fecha: {{date('Y-m-d')}}

Ruc: {{$company->number}}

Usuario: {{$reportService->getUserName($filters['seller_id'])}}

@if(!empty($records))
@php $acum_total_taxed=0; $acum_total_igv=0; $acum_total=0; $acum_total_taxed_usd=0; $acum_total_igv_usd=0; $acum_total_usd=0; @endphp {{-- --}} @foreach($records as $key => $value) {{-- --}} @if($value->state_type_id == '11') @else @endif @php if($value->currency_type_id == 'PEN'){ if($value->state_type_id == '11'){ $acum_total += 0; $acum_total_taxed += 0; $acum_total_igv += 0; }else{ $acum_total += $value->total; $acum_total_taxed += $value->total_taxed; $acum_total_igv += $value->total_igv; } }else if($value->currency_type_id == 'USD'){ if($value->state_type_id == '11'){ $acum_total_usd += 0; $acum_total_taxed_usd += 0; $acum_total_igv_usd += 0; }else{ $acum_total_usd += $value->total; $acum_total_taxed_usd += $value->total_taxed; $acum_total_igv_usd += $value->total_igv; } } @endphp @endforeach
# Fecha Emisión Hora Emisión Cliente Nota de Venta Estado Estado pago Moneda Plataforma Orden de compraRegionComprobantes T.Exportación T.Inafecta T.Exonerado T.Gravado T.Igv Total
{{$loop->iteration}} {{$value->date_of_issue->format('Y-m-d')}} {{$value->time_of_issue}} {{$value->customer->name}} {{$value->number_full}} {{$value->state_type->description}} {{$value->total_canceled ? 'Pagado':'Pendiente'}} {{$value->currency_type_id}} @foreach ($value->getPlatformThroughItems() as $platform) @endforeach {{$value->purchase_order}}{{$value->customer->department->description}} @foreach ($value->documents as $doc) @endforeach 0 0 0 0 0 0{{ ($value->total_exportation) }} {{ $value->total_unaffected }} {{ $value->total_exonerated }} {{ $value->total_taxed}} {{ $value->total_igv}} {{ $value->total}}
Totales PEN {{$acum_total_taxed}} {{$acum_total_igv}} {{$acum_total}}
Totales USD {{$acum_total_taxed_usd}} {{$acum_total_igv_usd}} {{$acum_total_usd}}
@else

No se encontraron registros.

@endif