| Cliente: | {{ $customer->name ?? '' }} |
| NIT/CC: | {{ $customer->company->identification_number ?? '' }}{{ isset($request->customer['dv']) ? '-'.$request->customer['dv'] : '' }} |
| Dir./Ciudad: | {{ $customer->company->address ?? '' }} @if(isset($customer->company->country) && isset($customer->company->country->id) && $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 |
| Tel/Email: | {{ $customer->company->phone ?? '' }}{{ isset($customer->email) && $customer->email ? ' / '.$customer->email : '' }} |
| Rég/Obl.: | {{ $customer->company->type_regime->name ?? '' }} @if(isset($customer->company->type_regime->name) && isset($customer->company->type_liability->name)) / @endif {{ $customer->company->type_liability->name ?? '' }} |
| INFORMACIÓN REFERENCIAL SECTOR SALUD | ||
|---|---|---|
| Cod Prestador | Info. Contratación | Info. de Pagos |
| {{$item->provider_code}} |
Modalidad Contratación: {{$item->health_contracting_payment_method()->name}} Nro Contrato: {{$item->contract_number}} Cobertura: {{$item->health_coverage()->name}} |
Copago: {{number_format($item->co_payment, 2)}} Cuota Moderadora: {{number_format($item->moderating_fee, 2)}} Pagos Compartidos: {{number_format($item->shared_payment, 2)}} Anticipos: {{number_format($item->advance_payment, 2)}} |
| Código | Cantidad | UM | Descripción | Val. Unit | Val. Item |
|---|---|---|---|---|---|
| {{ $item['code'] ?? '' }} | {{ $item['description'] }} | {{ isset($item['price_amount']) ? number_format($item['price_amount'], 2) : '' }} | {{ isset($item['invoiced_quantity']) && isset($item['price_amount']) ? number_format($item['invoiced_quantity'] * $item['price_amount'], 2) : '' }} | ||
| {{ $item['code'] ?? '' }} | {{ isset($item['invoiced_quantity']) ? number_format($item['invoiced_quantity'], 2) : '' }} | @inject('um', 'App\UnitMeasure') @if(isset($item['unit_measure_id'])) {{ $um->findOrFail($item['unit_measure_id'])['name'] }} @else {{ $item['unit_measure'] ?? '' }} @endif |
{{ $item['description'] ?? '' }}
@if(isset($item['notes']))
{{ $item['notes'] }} @endif |
@php $cantidad = isset($item['invoiced_quantity']) && $item['invoiced_quantity'] > 0 ? $item['invoiced_quantity'] : 1; $precioUnidad = (isset($item['tax_totals']) && isset($item['tax_totals'][0]['tax_amount'])) ? (($item['line_extension_amount'] ?? 0) + $item['tax_totals'][0]['tax_amount']) / $cantidad : ($item['line_extension_amount'] ?? 0) / $cantidad; @endphp {{ number_format($precioUnidad, 2) }} | @if(isset($item['tax_totals']) && isset($item['tax_totals'][0]['tax_amount'])) {{ number_format(($item['line_extension_amount'] ?? 0) + $item['tax_totals'][0]['tax_amount'], 2) }} @else {{ number_format($item['line_extension_amount'] ?? 0, 2) }} @endif |
|
IVA @if(isset($request->tax_totals)) @php $TotalImpuestos = 0; @endphp @foreach($request->tax_totals as $item) @php $TotalImpuestos += $item['tax_amount']; @endphp @inject('tax', 'App\Tax') {{$tax->findOrFail($item['tax_id'])['name']}}
@if(isset($item['percent']))
{{ number_format($item['percent'], 2) }}%
@elseif(isset($item['per_unit_amount']) && isset($item['base_unit_measure']))
{{ number_format($item['per_unit_amount'], 2) }} x {{ number_format($item['base_unit_measure'], 2) }}
@else
-
@endif:
{{number_format($item['tax_amount'], 2)}}
@endforeach
@endif
|
Retenciones @if(isset($withHoldingTaxTotal)) @php $TotalRetenciones = 0; @endphp @foreach($withHoldingTaxTotal as $item) @php $TotalRetenciones += $item['tax_amount']; @endphp @inject('tax', 'App\Tax') {{$tax->findOrFail($item['tax_id'])['name']}}: {{number_format($item['tax_amount'], 2)}}
@endforeach
@endif
|
| SUBTOTAL: | {{ number_format($request->legal_monetary_totals['line_extension_amount'], 2) }} |
| IMPUESTOS: | {{ number_format($TotalImpuestos, 2) }} |
| DESCUENTOS: | {{ number_format($request->legal_monetary_totals['allowance_total_amount'], 2) }} |
| RETENCIONES: | {{ number_format($TotalRetenciones, 2) }} |
| Saldo Anterior: | {{ number_format($request->previous_balance, 2) }} |
| TOTAL A PAGAR: | @php $totalAmount = $request->legal_monetary_totals['payable_amount']; if(isset($request->previous_balance)) $totalAmount += $request->previous_balance; if(isset($TotalRetenciones)) $totalAmount -= $TotalRetenciones; @endphp {{ number_format($totalAmount, 2) }} |