|
{{ $request->head_note }} |
|---|
|
INFORMACION DEL CLIENTE |
|||||||
|---|---|---|---|---|---|---|---|
|
CC o NIT: |
{{ $customer->company->identification_number }}-{{ $request->customer['dv'] ?? null }} |
Regimen: |
{{ $customer->company->type_regime->name }} |
||||
|
Cliente: |
{{ $customer->name }} |
Obligación: |
{{ $customer->company->type_liability->name }} |
||||
|
Dirrección: |
{{ $customer->company->address }} |
Email Cliente: |
{{ $customer->email }} |
||||
|
Ciudad: |
@if ($customer->company->country->id == 46) {{ $customer->company->municipality->name }} - {{ $customer->company->country->name }} @else {{ $customer->company->municipality_name }} - {{ $customer->company->state_name }} - {{ $customer->company->country->name }} @endif |
Telefono: |
{{ $customer->company->phone }} |
||||
|
INFORMACION DEL DELIVERY |
|||||||
|---|---|---|---|---|---|---|---|
|
Pais: |
{{ $country->findOrFail($request['delivery']['country_id'])['name'] }} |
Municipio: |
{{ $municipality->findOrFail($request['delivery']['municipality_id'])['name'] }} |
Dirrección: |
{{$request['delivery']['address']}} |
Fecha: |
{{$request['delivery']['actual_delivery_date']}} |
|
INFORMACION REFERENCIAL SECTOR SALUD |
||||
|---|---|---|---|---|
| Cod Prestador | Datos Usuario | Info. Contrat./Cobertura | Nros. Autoriz./MIPRES | Info. de Pagos |
|
{{ $item->provider_code }} |
Nro ID: {{ $item->identification_number }} Nombre: {{ $item->first_name }} {{ $item->surname }} Tipo Documento: {{ $item->health_type_document_identification()->name }} Tipo Usuario: {{ $item->health_type_user()->name }} |
Modalidad Contratacion: {{ $item->health_contracting_payment_method()->name }} Nro. Contrato: {{ $item->contract_number }} Cobertura: {{ $item->health_coverage()->name }} |
Nros Autorizacion: {{ $item->autorization_numbers }} Nro MIPRES: {{ $item->mipres }} Entrega MIPRES: {{ $item->mipres_delivery }} Nro Poliza: {{ $item->policy_number }} |
Copago: {{ number_format($item->co_payment, 2) }} Cuota Moderardora: {{ number_format($item->moderating_fee, 2) }} Cuota Recuperacion: {{ number_format($item->recovery_fee, 2) }} Pagos Compartidos: {{ number_format($item->shared_payment, 2) }} |
|
Inicio Periodo Facturacion: |
{{ $healthfields->invoice_period_start_date }} |
Fin Periodo Facturacion: |
{{ $healthfields->invoice_period_end_date }} |
@endif
@if (isset($request['number_account']))
|
Número de cuenta: |
{{ $request['number_account'] }} |
| # | Código | Descripcion | Unidad | Cantidad | Val. Unit | Impto | Dcto | % | Total | |||||||||||||||||||
| {{ $ItemNro }} | {{ $item['code'] }} | {{ $item['description'] }} | {{ number_format($item['price_amount'], 2) }} | {{ number_format($item['tax_totals'][0]['tax_amount'], 2) }} | @if (isset($item['allowance_charges'])){{ number_format($item['allowance_charges'][0]['amount'], 2) }} | @else{{ number_format('0', 2) }} | @endif{{ number_format($item['invoiced_quantity'] * $item['price_amount'], 2) }} | --}} @else{{ $ItemNro }} | {{ $item['code'] }} |
@if (isset($item['notes']))
{{ $item['description'] }}
Nota: {{ $item['notes'] }} @else {{ $item['description'] }} @endif |
{{ number_format($item['invoiced_quantity'], 2) }} | {{ $um->findOrFail($item['unit_measure_id'])['name'] }} | @if (isset($item['tax_totals'])) @if (isset($item['allowance_charges'])){{ number_format(($item['line_extension_amount'] + $item['allowance_charges'][0]['amount']) / $item['invoiced_quantity'], 2) }} | @else{{ number_format($item['line_extension_amount'] / $item['invoiced_quantity'], 2) }} | @endif @else @if (isset($item['allowance_charges'])){{ number_format(($item['line_extension_amount'] + $item['allowance_charges'][0]['amount']) / $item['invoiced_quantity'], 2) }} | @else{{ number_format($item['line_extension_amount'] / $item['invoiced_quantity'], 2) }} | @endif @endif @if (isset($item['tax_totals'])) @if (isset($item['tax_totals'][0]['tax_amount'])){{ number_format($item['tax_totals'][0]['tax_amount'] / $item['invoiced_quantity'], 2) }} | @else{{ number_format(0, 2) }} | @endif @elseE | @endif @if (isset($item['allowance_charges'])){{ number_format($item['allowance_charges'][0]['amount'] / $item['invoiced_quantity'], 2) }} | {{ number_format(($item['allowance_charges'][0]['amount'] * 100) / $item['allowance_charges'][0]['base_amount'], 2) }} | @if (isset($item['tax_totals'])){{ number_format($item['line_extension_amount'] + $item['tax_totals'][0]['tax_amount'], 2) }} | @else{{ number_format($item['line_extension_amount'], 2) }} | @endif @else{{ number_format('0', 2) }} | {{ number_format('0', 2) }} | {{ number_format($item['invoiced_quantity'] * ($item['line_extension_amount'] / $item['invoiced_quantity']), 2) }} | @endif @endif
| Impuestos | Retenciones | Totales | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
| Valor en letras: |
@inject('Varios', 'App\Custom\NumberSpellOut')
@if (isset($request->tarifaica))
@if (isset($request->legal_monetary_totals['allowance_total_amount']))
@if (isset($request->previous_balance))
SON: {{ $Varios->convertir(round($request->legal_monetary_totals['payable_amount'] + $request->legal_monetary_totals['allowance_total_amount'] + $request->previous_balance, $request->idcurrency, 2)) }} M/CTE*********. @elseSON: {{ $Varios->convertir(round($request->legal_monetary_totals['payable_amount'] + $request->legal_monetary_totals['allowance_total_amount'], $request->idcurrency, 2)) }} M/CTE*********. @endif @else @if (isset($request->previous_balance))SON: {{ $Varios->convertir(round($request->legal_monetary_totals['payable_amount'] + 0 + $request->previous_balance, 2)) }} M/CTE*********. @elseSON: {{ $Varios->convertir(round($request->legal_monetary_totals['payable_amount'] + 0, 2)) }} M/CTE*********. @endif @endif @else @if (isset($request->previous_balance))SON: {{ $Varios->convertir(round($request->legal_monetary_totals['payable_amount'] + $request->previous_balance, 2), $request->idcurrency) }} M/CTE*********. @elseSON: {{ $Varios->convertir(round($request->legal_monetary_totals['payable_amount'], 2), $request->idcurrency) }} M/CTE*********. @endif @endif |
@inject('moneda', 'App\TypeCurrency')
Moneda: | @if(isset($request->idcurrency)){{ $moneda->findOrFail($request['idcurrency'])['code'] }} | @else{{ $moneda->findOrFail(35)['code'] }} | @endifTotal Items: | {{ $ItemNro }} |
| Visita: {{$request['web_site']}} |
Informe el pago al telefono {{ $company->phone }} o al e-mail {{ $user->email }} |
Observaciones:{{ $notes }} |
Firma del Cliente |
Firma de Autorizado |
Elaborado Por:{{ $request->elaborated }} |
Revisado Por:{{ $request->reviewed }} |