Reporte Nota de Venta


Empresa:

{{$company->name}}

Fecha:

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

Ruc:

{{$company->number}}

@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 Usuario/Vendedor Cliente Nota de Venta Estado Moneda Comprobantes Cotización Caso T.Exportación T.Inafecta T.Exonerado T.Gravado T.Igv Total
{{$loop->iteration}} {{$value->date_of_issue->format('Y-m-d')}} {{$value->user->name}} {{$value->customer->name}} {{$value->number_full}} {{$value->state_type->description}} {{$value->currency_type_id}} @foreach ($value->documents as $doc) @endforeach {{ ($value->quotation) ? $value->quotation->number_full : '' }} {{ isset($value->quotation->sale_opportunity) ? $value->quotation->sale_opportunity->number_full : '' }}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