Reporte Compras
Empresa: {{$company->name}} |
Fecha: {{date('Y-m-d')}} |
Ruc: {{$company->number}} |
Establecimiento: {{$establishment->address}} - {{$establishment->department->description}} - {{$establishment->district->description}} |
Usuario: {{$reportService->getUserName($filters['seller_id'])}} |
@endif
@if($filters['person_id'])
Proveedor: {{$reportService->getPersonName($filters['person_id'])}} |
@endif
# | Tipo Doc | Número | F. Emisión | F. Vencimiento | Proveedor | RUC | Cliente | F. Pago | Moneda | Total ISC | Total Gravado | Total IGV | Total | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{$loop->iteration}} | {{$value->document_type->id}} | {{$value->series}}-{{$value->number}} | {{$value->date_of_issue->format('Y-m-d')}} | {{$value->date_of_due->format('Y-m-d')}} | {{$value->supplier->name}} | {{$value->supplier->number}} |
{{$value->customer ? $value->customer->name : ''}} {{$value->customer ? $value->customer->identity_document_type->description : ''}} {{$value->customer ? $value->customer->number : ''}} |
{{-- {{isset($value->purchase_payments['payment_method_type']['description'])?$value->purchase_payments['payment_method_type']['description']:'-'}} --}} @foreach($value->payments as $pay) {{$pay->payment_method_type->description}} @endforeach | @if ($apply_conversion_to_pen && $value->isCurrencyTypeUsd()){{$value->currency_type_id}} (Conv.) | {{ $value->state_type_id == '11' ? 0 : $value->getConvertTotalIscToPen() }} | {{ $value->state_type_id == '11' ? 0 : $value->getConvertTotalTaxedToPen() }} | {{ $value->state_type_id == '11' ? 0 : $value->getConvertTotalIgvToPen() }} | {{ $value->state_type_id == '11' ? 0 : $value->getConvertTotalToPen() }} | @else{{$value->currency_type_id}} | {{ $value->state_type_id == '11' ? 0 : $value->total_isc}} | {{ $value->state_type_id == '11' ? 0 : $value->total_taxed}} | {{ $value->state_type_id == '11' ? 0 : $value->total_igv}} | {{ $value->state_type_id == '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; $state = $value->state_type_id; @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.