{{--
|
|
|
{{$user->name}} @if(isset($request->establishment_name) && $request->establishment_name != 'Oficina Principal') {{$request->establishment_name}} @endif NIT: {{$company->identification_number}}-{{$company->dv}} - Dirección: {{$company->address}} Tel: {{$company->phone}} - Correo: {{$user->email}} |
|
Regimen: {{$company->type_regime->name}} -
Obligacion: {{$company->type_liability->name}}
@if(isset($request->nombretipodocid))
- Tipo Documento ID: {{$request->nombretipodocid}}
@endif
@if(isset($request->tarifaica) && $request->tarifaica != '100')
- TARIFA ICA: {{$request->tarifaica}}%
@endif
@if(isset($request->actividadeconomica))
- ACTIVIDAD ECONOMICA: {{$request->actividadeconomica}}
@endif
@if(isset($request->seze))
Warning: Undefined variable $request in C:\laragon\www\apidian-laravel-8-s3\resources\views\pdfs\pos\template3.blade.php on line 45 Warning: Attempt to read property "seze" on null in C:\laragon\www\apidian-laravel-8-s3\resources\views\pdfs\pos\template3.blade.php on line 45 Warning: Undefined variable $request in C:\laragon\www\apidian-laravel-8-s3\resources\views\pdfs\pos\template3.blade.php on line 45 Warning: Attempt to read property "seze" on null in C:\laragon\www\apidian-laravel-8-s3\resources\views\pdfs\pos\template3.blade.php on line 45 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in C:\laragon\www\apidian-laravel-8-s3\resources\views\pdfs\pos\template3.blade.php on line 45 Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in C:\laragon\www\apidian-laravel-8-s3\resources\views\pdfs\pos\template3.blade.php on line 45 Warning: Undefined variable $request in C:\laragon\www\apidian-laravel-8-s3\resources\views\pdfs\pos\template3.blade.php on line 46 Warning: Attempt to read property "seze" on null in C:\laragon\www\apidian-laravel-8-s3\resources\views\pdfs\pos\template3.blade.php on line 46 Warning: Undefined variable $request in C:\laragon\www\apidian-laravel-8-s3\resources\views\pdfs\pos\template3.blade.php on line 46 Warning: Attempt to read property "seze" on null in C:\laragon\www\apidian-laravel-8-s3\resources\views\pdfs\pos\template3.blade.php on line 46 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in C:\laragon\www\apidian-laravel-8-s3\resources\views\pdfs\pos\template3.blade.php on line 46 Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in C:\laragon\www\apidian-laravel-8-s3\resources\views\pdfs\pos\template3.blade.php on line 46 - Regimen SEZE Año: {{$aseze}} Constitución Sociedad Año: {{$asociedad}} @endif Resolución de Facturación Electrónica No. {{$resolution->resolution}} de {{$resolution->resolution_date}} Prefijo: {{$resolution->prefix}}, Rango {{$resolution->from}} al {{$resolution->to}} Vigencia Desde: {{$resolution->date_from}} Hasta: {{$resolution->date_to}} @if (isset($request->seze)) FAVOR ABSTENERSE DE PRACTICAR RETENCIÓN EN LA FUENTE REGIMEN ESPECIAL DECRETO 2112 DE 2019 @endif |
|
DOCUMENTO EQUIVALENTE ELECTRONICO DEL TIQUETE DE MAQUINA REGISTRADORA CON SISTEMA P.O.S. No: {{$resolution->prefix}} - {{$request->number}} Fecha Emisión: {{$date}} Fecha Validación DIAN: {{$date}} Hora Validación DIAN: {{$time}} |
|
CC o NIT: {{$customer->company->identification_number}}-{{$request->customer['dv'] ?? NULL}} Cliente:{{$customer->name}} Régimen: {{$customer->company->type_regime->name}} Obligación: {{$customer->company->type_liability->name}} Dirección: {{$customer->company->address}} 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 Teléfono: {{$customer->company->phone}} Email: {{$customer->email}} |
|
Forma de Pago: {{$paymentForm[0]->name}}
Medios de Pago:
@foreach ($paymentForm as $paymentF)
{{$paymentF->nameMethod}}{{ !$loop->last ? ', ' : '' }}
@endforeach
Plazo Para Pagar: {{$paymentForm[0]->duration_measure}} Días Fecha Vencimiento: {{$paymentForm[0]->payment_due_date}} |
|
| Tipo Moneda: | {{$currency->where('id', 'like', $request['currency_id'].'%')->firstOrFail()['name']}} |
| T.R.M: | {{number_format($request['calculationrate'], 2)}} |
| @if(isset($request['order_reference']['id_order'])) Número Pedido: {{$request['order_reference']['id_order']}} @endif @if(isset($request['order_reference']['issue_date_order'])) Fecha Pedido: {{$request['order_reference']['issue_date_order']}} @endif @if(isset($healthfields)) Inicio Periodo Facturación: {{$healthfields->invoice_period_start_date}} Fin Periodo Facturación: {{$healthfields->invoice_period_end_date}} @endif @if(isset($request['number_account'])) Número de cuenta: {{$request['number_account']}} @endif @if(isset($request['deliveryterms'])) Términos de Entrega: {{$request['deliveryterms']['loss_risk_responsibility_code']}} - {{$request['deliveryterms']['loss_risk']}} T.R.M: {{ number_format($request['calculationrate'], 2) }} Fecha T.R.M: {{$request['calculationratedate']}} Tipo Moneda: @inject('currency', 'App\Models\TypeCurrency') {{$currency->findOrFail($request['idcurrency'])['name']}} @endif |
| INFORMACION REFERENCIAL SECTOR SALUD |
|---|
| Cod Prestador | Info. Contrat. | Info. de Pagos | @foreach ($healthfields->user_info as $item)
|---|---|---|
| {{$item->provider_code}} |
Modalidad Contratacion: {{$item->health_contracting_payment_method()->name}} Nro Contrato: {{$item->contract_number}} Cobertura: {{$item->health_coverage()->name}} |
Copago: {{number_format($item->co_payment, 2)}} Cuota Moderardora: {{number_format($item->moderating_fee, 2)}} Pagos Compartidos: {{number_format($item->shared_payment, 2)}} Anticipos: {{number_format($item->advance_payment, 2)}} |
| Descripción | Subtotal |
|---|---|
| @inject('um', 'App\Models\UnitMeasure') @if($item['description'] == 'Administración' or $item['description'] == 'Imprevisto' or $item['description'] == 'Utilidad') {{$ItemNro}} | {{$item['description']}} | - | - | Val. Unit: {{ number_format($item['price_amount'], 2) }} | IVA: {{ number_format($item['tax_totals'][0]['tax_amount'], 2) }} @else {{$ItemNro}} | {{$item['description']}} @if(isset($item['notes'])) | {{$item['notes']}} @endif | {{ $um->findOrFail($item['unit_measure_id'])['name'] }} : {{ number_format($item['invoiced_quantity'], 2) }} | Val. Unit: @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 | IVA: @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 @else E @endif | @if(isset($item['allowance_charges'])) DESCUENTO: {{number_format(($item['allowance_charges'][0]['amount'] * 100) / $item['allowance_charges'][0]['base_amount'], 2)}}% ${{number_format($item['allowance_charges'][0]['amount'] / $item['invoiced_quantity'], 2)}} @else {{number_format("0", 2)}} {{number_format("0", 2)}} {{number_format($item['invoiced_quantity'] * ($item['line_extension_amount'] / $item['invoiced_quantity']), 2)}} @endif @endif | @if($item['description'] == 'Administración' or $item['description'] == 'Imprevisto' or $item['description'] == 'Utilidad') {{ number_format($item['invoiced_quantity'] * $item['price_amount'], 2) }} @else @if(isset($item['allowance_charges'])) @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($item['line_extension_amount'], 2) }} @endif @endif |
|
|
|
|
IVA
@if(isset($request->tax_totals))
@foreach($request->tax_totals as $item)
Warning: Undefined variable $item in C:\laragon\www\apidian-laravel-8-s3\resources\views\pdfs\pos\template3.blade.php on line 323 Warning: Trying to access array offset on value of type null in C:\laragon\www\apidian-laravel-8-s3\resources\views\pdfs\pos\template3.blade.php on line 323 @inject('tax', 'App\Models\Tax')
{{$tax->findOrFail($item['tax_id'])['name']}} ({{ number_format($item['percent'], 2) }}%):
{{ number_format($item['tax_amount'], 2) }}
@endforeach
@else
No hay impuestos
@endif
|
Retenciones
@if(isset($withHoldingTaxTotal))
@foreach($withHoldingTaxTotal as $item)
Warning: Undefined variable $item in C:\laragon\www\apidian-laravel-8-s3\resources\views\pdfs\pos\template3.blade.php on line 341 Warning: Trying to access array offset on value of type null in C:\laragon\www\apidian-laravel-8-s3\resources\views\pdfs\pos\template3.blade.php on line 341 @inject('tax', 'App\Models\Tax')
{{$tax->findOrFail($item['tax_id'])['name']}}:
{{ number_format($item['tax_amount'], 2) }}
@endforeach
@else
No hay retenciones
@endif
|
| Nro Lineas | {{$ItemNro}} | |||||
|---|---|---|---|---|---|---|
| Base | {{ number_format($request->legal_monetary_totals['line_extension_amount'], 2) }} | |||||
| Impuestos | {{ number_format($TotalImpuestos, 2) }} | |||||
| Retenciones | {{ number_format($TotalRetenciones, 2) }} | |||||
| Descuentos | {{ number_format($request->legal_monetary_totals['allowance_total_amount'], 2) }} | |||||
| Saldo Anterior | {{ number_format($request->previous_balance, 2) }} | |||||
| Total Factura - Descuentos: | @if(isset($request->tarifaica)) @if(isset($request->legal_monetary_totals['allowance_total_amount'])) @if(isset($request->previous_balance)){{ number_format($request->legal_monetary_totals['payable_amount'] + $request->previous_balance - $TotalRetenciones, 2) }} | @else{{ number_format($request->legal_monetary_totals['payable_amount'] - $TotalRetenciones, 2) }} | @endif @else @if(isset($request->previous_balance)){{ number_format($request->legal_monetary_totals['payable_amount'] + 0 + $request->previous_balance - $TotalRetenciones, 2) }} | @else{{ number_format($request->legal_monetary_totals['payable_amount'] + 0 - $TotalRetenciones, 2) }} | @endif @endif @else @if(isset($request->previous_balance)){{ number_format($request->legal_monetary_totals['payable_amount'] + $request->previous_balance - $TotalRetenciones, 2) }} | @else{{ number_format($request->legal_monetary_totals['payable_amount'] - $TotalRetenciones, 2) }} | @endif @endif
| Total a Pagar | @if(isset($request->tarifaica)) @if(isset($request->legal_monetary_totals['allowance_total_amount'])) @if(isset($request->previous_balance)){{ number_format($request->legal_monetary_totals['payable_amount'] + $request->previous_balance - $TotalRetenciones, 2) }} | @else{{ number_format($request->legal_monetary_totals['payable_amount'] - $TotalRetenciones, 2) }} | @endif @else @if(isset($request->previous_balance)){{ number_format($request->legal_monetary_totals['payable_amount'] + 0 + $request->previous_balance - $TotalRetenciones, 2) }} | @else{{ number_format($request->legal_monetary_totals['payable_amount'] + 0 - $TotalRetenciones, 2) }} | @endif @endif @else @if(isset($request->previous_balance)){{ number_format($request->legal_monetary_totals['payable_amount'] + $request->previous_balance - $TotalRetenciones, 2) }} | @else{{ number_format($request->legal_monetary_totals['payable_amount'] - $TotalRetenciones, 2) }} | @endif @endif
@php // Inicializamos con payable_amount $totalAmount = $request->legal_monetary_totals['payable_amount']; // Verificamos si existe previous_balance if (isset($request->previous_balance)) { $totalAmount += $request->previous_balance; } // Verificamos si existen retenciones y las restamos if (isset($TotalRetenciones)) { $totalAmount -= $TotalRetenciones; } // Finalmente, redondeamos el total a dos decimales $totalAmount = round($totalAmount, 2); // Definimos la moneda $idcurrency = $request->idcurrency ?? null; @endphp
SON: {{$Varios->convertir($totalAmount, $idcurrency)}} M/CTE*********.
NOTAS:
{{$notes}}
INFORME EL PAGO AL TELEFONO {{$company->phone}} o al e-mail {{$user->email}}
{{--
FIRMA ACEPTACIÓN:
CC:
FECHA:
|
|