@php $establishment = $document->establishment; $supplier = $document->supplier; //$path_style = app_path('CoreFacturalo'.DIRECTORY_SEPARATOR.'Templates'.DIRECTORY_SEPARATOR.'pdf'.DIRECTORY_SEPARATOR.'style.css'); $tittle = $document->prefix.'-'.str_pad($document->id, 8, '0', STR_PAD_LEFT); @endphp
{{--
|
@else
{{--![]() |
@endif
{{ $company->name }}{{ $company->identification_number }}{{ ($establishment->address !== '-')? $establishment->address : '' }} {{ ($establishment->city_id !== '-')? ', '.$establishment->city->name : '' }} {{ ($establishment->department_id !== '-')? '- '.$establishment->department->name : '' }} {{ ($establishment->country_id !== '-')? ', '.$establishment->country->name : '' }}@isset($establishment->trade_address){{ ($establishment->trade_address !== '-')? 'D. Comercial: '.$establishment->trade_address : '' }}@endisset{{ ($establishment->telephone !== '-')? 'Central telefónica: '.$establishment->telephone : '' }}{{ ($establishment->email !== '-')? 'Email: '.$establishment->email : '' }}@isset($establishment->web_address){{ ($establishment->web_address !== '-')? 'Web: '.$establishment->web_address : '' }}@endisset @isset($establishment->aditional_information){{ ($establishment->aditional_information !== '-')? $establishment->aditional_information : '' }}@endisset |
ORDEN DE COMPRA{{ $tittle }} |
Proveedor: | {{ $supplier->name }} | Fecha de emisión: | {{ $document->date_of_issue->format('Y-m-d') }} |
{{ $supplier->identity_document_type->name }}: | {{ $supplier->number }} | @if($document->date_of_due)Fecha de vencimiento: | {{ $document->date_of_due->format('Y-m-d') }} | @endif
Dirección: | {{ $supplier->address }} {{ ($supplier->country_id)? ', '.$supplier->country->name : '' }} {{ ($supplier->department_id)? ', '.$supplier->department->name : '' }} {{ ($supplier->city_id)? '- '.$supplier->city->name : '' }} | ||
Dir. Envío: | {{ $document->shipping_address }} | ||
Teléfono: | {{ $supplier->telephone }} | ||
T. Pago: | {{ $document->payment_method_type->description }} | ||
Vendedor: | {{ $document->user->name }} | ||
O. Venta: | {{ $document->sale_opportunity->number_full }} |
Proforma: | {{ $document->purchase_quotation->identifier }} |
Descripción: | {{ $document->description }} |
{{ $guide->document_type_description }} | @else{{ $guide->document_type_id }} | @endif: | {{ $guide->number }} |
CANT. | UNIDAD | DESCRIPCIÓN | P.UNIT | DTO. | TOTAL |
---|---|---|---|---|---|
@if(((int)$row->quantity != $row->quantity)) {{ $row->quantity }} @else {{ number_format($row->quantity, 0) }} @endif | {{ $row->item->unit_type->name }} |
{!!$row->item->name!!} @if (!empty($row->item->presentation)) {!!$row->item->presentation->description!!} @endif
@if($row->attributes)
@foreach($row->attributes as $attr)
{!! $attr->description !!} : {{ $attr->value }} @endforeach @endif @if($row->discounts) @foreach($row->discounts as $dtos) {{ $dtos->factor * 100 }}% {{$dtos->description }} @endforeach @endif |
{{ number_format($row->unit_price, 2) }} | {{ $row->discount }} | {{ number_format($row->total, 2) }} |
TOTAL VENTA: {{ $document->currency->symbol }} | {{ $document->sale }} | ||||
TOTAL DESCUENTO (-): {{ $document->currency->symbol }} | {{ $document->total_discount }} | ||||
{{$tax->name}}(+): {{ $document->currency->symbol }} | {{number_format($tax->total, 2)}} | ||||
SUBTOTAL: {{ $document->currency->symbol }} | {{ $document->subtotal }} | ||||
TOTAL A PAGAR: {{ $document->currency->symbol }} | {{ number_format($document->total, 2) }} |
@foreach($document->legends as $row)
Son: {{ $row->value }} {{ $document->currency->description }} @endforeachInformación adicional @foreach($document->additional_information as $information) {{ $information }} @endforeach | --}}