Reporte Documentos
|
Empresa: {{$company->name}} |
Fecha: {{date('Y-m-d')}} |
|
Ruc: {{$company->number}} |
Establecimiento: {{$establishment->address}} - {{$establishment->department->description}} - {{$establishment->district->description}} |
| # | Tipo Doc | Número | Fecha emisión | Doc. Afectado | Cliente | RUC | Estado | Moneda | Total Gravado | Total IGV | Total | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{$loop->iteration}} | {{$value->document_type->id}} | {{$value->series}}-{{$value->number}} | {{$value->date_of_issue->format('Y-m-d')}} | @if(in_array($value->document_type_id,["07","08"]) && $value->note) @php $serie = ($value->note->affected_document) ? $value->note->affected_document->series : $value->note->data_affected_document->series; $number = ($value->note->affected_document) ? $value->note->affected_document->number : $value->note->data_affected_document->number; $serie_affec = $serie.' - '.$number; @endphp @endif{{ $serie_affec }} | {{$value->customer->name}} | {{$value->customer->number}} | {{$value->state_type->description}} | {{$value->currency_type_id}} | @php $signal = $value->document_type_id; $state = $value->state_type_id; @endphp @if($signal == '07'){{$signal == '07' ? "-" : "" }}{{$value->total_taxed}} | {{$signal == '07' ? "-" : "" }}{{$value->total_igv}} | {{$signal == '07' ? "-" : "" }}{{$value->total}} | @else{{ (in_array($value->document_type_id,['01','03']) && in_array($value->state_type_id,['09','11'])) ? 0 : $value->total_taxed}} | {{ (in_array($value->document_type_id,['01','03']) && in_array($value->state_type_id,['09','11'])) ? 0 : $value->total_igv}} | {{ (in_array($value->document_type_id,['01','03']) && in_array($value->state_type_id,['09','11'])) ? 0 : $value->total}} | @endif @php $value->total_taxed = (in_array($value->document_type_id,['01','03']) && in_array($value->state_type_id,['09','11'])) ? 0 : $value->total_taxed; $value->total_igv = (in_array($value->document_type_id,['01','03']) && in_array($value->state_type_id,['09','11'])) ? 0 : $value->total_igv; $value->total = (in_array($value->document_type_id,['01','03']) && in_array($value->state_type_id,['09','11'])) ? 0 : $value->total; @endphp
| Totales PEN | {{$acum_total_taxed}} | {{$acum_total_igv}} | {{$acum_total}} | |||||||||||
| Totales USD | {{$acum_total_taxed_usd}} | {{$acum_total_igv_usd}} | {{$acum_total_usd}} | |||||||||||
No se encontraron registros.