@php
$establishment = $document->establishment;
$customer = $document->customer;
$invoice = $document->invoice;
$document_number = $document->series.'-'.str_pad($document->number, 8, '0', STR_PAD_LEFT);
@endphp
{{ $company->name }} |
{{ $establishment->address }} |
{{ strtoupper($establishment->department->description).'-'.
strtoupper($establishment->province->description).'-'.
strtoupper($establishment->district->description) }} |
@if($establishment->telephone)
{{ $establishment->telephone }} |
@endif
RUC {{ $company->number }} |
{{ $document->document_type->description }} |
{{ $document_number }} |
|
F.EMISIÓN |
: |
{{ $document->date_of_issue->format('d/m/Y') }} |
{{ $customer->identity_document_type->description }} |
: |
{{ $customer->number }} |
CLIENTE |
: |
{{ $customer->name }} |
@if ($customer->address && $customer->address !== '' && $customer->address !== '-')
DIRECCIÓN |
: |
{{ $customer->address }}
{{ strtoupper($customer->department->description).'-'.
strtoupper($customer->province->description).'-'.
strtoupper($customer->district->description) }}
|
@endif
|
CANT. |
DESCRIPCIÓN |
P.U. |
DSCTO. |
TOTAL |
@foreach($document->items as $index => $row)
{{ round($row->quantity, 0) }} |
{{ $row->item->description }}
@if($row->item->is_set == 1)
@inject('itemSet', 'App\Services\ItemSetService')
@foreach ($itemSet->getItemsSet($row->item_id) as $item)
{{$item}}
@endforeach
@endif
|
{{ number_format($row->unit_price, 2) }} |
@if($row->discounts)
@foreach($row->discounts as $dscto)
{{ $dscto->factor * 100 }}%
@endforeach
@else
0
@endif
|
{{ $row->total }} |
@endforeach
@if ($document->total_exonerated > 0)
EXONERADA |
|
{{ $document->total_exonerated }} |
@endif
@if ($document->total_unaffected > 0)
INAFECTA |
|
{{ $document->total_unaffected }} |
@endif
@if ($document->total_taxed > 0)
GRAVADA |
|
{{ $document->total_taxed }} |
@endif
@if ($document->total_free > 0)
GRATUITA |
|
{{ $document->total_free }} |
@endif
IGV |
|
{{ $document->total_igv }} |
@if ($document->total_charge > 0)
RECARGO(10%) |
|
{{ $document->total_charge }} |
@endif
TOTAL |
|
{{ $document->total }} |
|
@foreach($document->legends as $row)
SON: {{ $row->value }} {{ $document->currency_type->description }}
@endforeach
|
Representación impresa de la {{ $document->document_type->description }} |
@if($company->resolution)
Autorizado mediante Resolución de Intendencia |
No. {{ $company->resolution }} |
@endif
Para consultar el comprobante ingresar a {{ $company->url_cpe }} |
Hash: {{ $document->hash }} |
 |
|