@php $enabled_sales_agents = \Modules\Company\Models\Configuration::getRecordIndividualColumn('enabled_sales_agents'); @endphp Compras

Reporte Nota de Venta


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

Empresa:

{{$company->name}}

Ruc:

{{$company->number}}

Fecha:

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

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 @if ($enabled_sales_agents) @endif @foreach($records as $key => $value) {{-- {{ dd($value->items)}} --}} @php $documents = $value->documents; @endphp @if($value->state_type_id == '11') @else @endif @if ($enabled_sales_agents) @endif @if(count($value->getItemsforReport()) > 1) @foreach ($value->getItemsforReport() as $key => $item) @if(!$loop->first) @endif @endforeach @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 {{-- {{ dd($acum_total_taxed) }} --}}
# Fecha Emisión Hora Emisión Usuario/Vendedor Cliente Nota de Venta Estado pago Estado Moneda Plataforma Orden de compra Region Comprobantes Fecha comprobante Cotización Caso Productos Descuento T.Exportación T.Inafecta T.Exonerado T.Gravado T.Igv TotalAgente Datos de referencia
{{$loop->iteration}} {{$value->date_of_issue->format('Y-m-d')}} {{$value->time_of_issue}} {{$value->user->name}} {{$value->customer->name}} {{$value->number_full}} {{$value->total_canceled ? 'Pagado':'Pendiente'}} {{$value->state_type->description}} {{$value->currency_type_id}} @foreach ($value->getPlatformThroughItems() as $platform) @endforeach {{$value->purchase_order}} {{$value->customer->department->description}} @foreach ($documents as $doc)

{{$doc->number_full}}

@endforeach
@foreach ($documents as $doc)

{{ $doc->date_of_issue->format('Y-m-d') }}

@endforeach
{{ ($value->quotation) ? $value->quotation->number_full : '' }} {{ isset($value->quotation->sale_opportunity) ? $value->quotation->sale_opportunity->number_full : '' }} @foreach ($value->getItemsforReport() as $key => $item) @if($loop->first) {{ $item['description'] }} / Cantidad: {{ $item['quantity'] }} @endif @endforeach 0 0 0 0 0 0 0{{ ($value->total_discount) }} {{ ($value->total_exportation) }} {{ $value->total_unaffected }} {{ $value->total_exonerated }} {{ $value->total_taxed}} {{ $value->total_igv}} {{ $value->total}}{{optional($value->agent)->search_description}} {{$value->reference_data}}
{{ $item['description'] }} / Cantidad: {{ $item['quantity'] }}
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