FACTURA ELECTRONICA DE VENTA No

{{$resolution->prefix}} - {{$request->number}}

Fecha Validacion DIAN: {{$date}}
Hora Validacion DIAN: {{$time}}

{{$user->name}}
@if(isset($request->establishment_name)) {{$request->establishment_name}}
@endif
@if(isset($request->ivaresponsable)) @if($request->ivaresponsable != $company->type_regime->name) NIT: {{$company->identification_number}}-{{$company->dv}} - {{$company->type_regime->name}} - {{$request->ivaresponsable}} - {{$company->type_liability->name}}
@else NIT: {{$company->identification_number}}-{{$company->dv}} - {{$company->type_regime->name}} - {{$company->type_liability->name}}
@endif @else NIT: {{$company->identification_number}} - {{$company->type_regime->name}} - {{$company->type_liability->name}}
@endif @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->tarifaica) && isset($request->actividadeconomica)) - @endif @if(isset($request->actividadeconomica)) ACTIVIDAD ECONOMICA: {{$request->actividadeconomica}}
@else
@endif Resolucion de Facturación Electronica No. {{$resolution->resolution}}
de {{$resolution->resolution_date}}, Rango {{$resolution->from}} Al {{$resolution->to}} - Vigencia Desde: {{$resolution->date_from}} Hasta: {{$resolution->date_to}}
REPRESENTACION GRAFICA DE FACTURA ELECTRONICA
{{$company->address}} - {{$company->municipality->name}} - {{$company->country->name}} Telefono - {{$company->phone}}
E-mail: {{$user->email}}


CC o NIT: {{$customer->company->identification_number}}-{{$request->customer['dv'] ?? NULL}}
Cliente: {{$customer->name}}
Regimen: {{$customer->company->type_regime->name}}
Obligación: {{$customer->company->type_liability->name}}
Dirección: {{$customer->company->address}}
Ciudad: {{$customer->company->municipality->name}} - {{$customer->company->country->name}}
Telefono: {{$customer->company->phone}}
Email: {{$customer->email}}
@if(isset($request['order_reference']['id_order'])) @endif @if(isset($request['order_reference']['issue_date_order'])) @endif @if(isset($request['number_account'])) @endif
Forma de Pago: {{$paymentForm->name}}
Medio de Pago: {{$paymentForm->nameMethod}}
Plazo Para Pagar: {{$paymentForm->duration_measure}} Dias
Fecha Vencimiento: {{$paymentForm->payment_due_date}}
Numero Pedido: {{$request['order_reference']['id_order']}}
Fecha Pedido: {{$request['order_reference']['issue_date_order']}}
Número de cuenta: {{ $request['number_account'] }}

@foreach($request['invoice_lines'] as $item) @inject('um', 'App\UnitMeasure') @if($item['description'] == 'Administración' or $item['description'] == 'Imprevisto' or $item['description'] == 'Utilidad') @if(isset($item['allowance_charges'])) @else @endif @else @if(isset($item['tax_totals'])) @if(isset($item['tax_totals'][0]['tax_amount'])) @else @endif @else @endif @if(isset($item['allowance_charges'])) @else @endif @endif @endforeach
# Código Descripcion Cantidad UM Val. Unit IVA/IC Dcto Val. Item
{{$ItemNro}} {{$item['code']}} {{$item['description']}} {{number_format($item['price_amount'], 2)}} {{number_format($item['tax_totals'][0]['tax_amount'], 2)}}{{number_format($item['allowance_charges'][0]['amount'], 2)}}{{number_format("0", 2)}}{{number_format($item['invoiced_quantity'] * $item['price_amount'], 2)}}{{$ItemNro}} {{$item['code']}} {{$item['description']}} {{number_format($item['invoiced_quantity'], 2)}} {{$um->findOrFail($item['unit_measure_id'])['name']}} {{number_format($item['price_amount'], 2)}}{{number_format($item['tax_totals'][0]['tax_amount'], 2)}}{{number_format(0, 2)}}E{{number_format($item['allowance_charges'][0]['amount'], 2)}}{{number_format("0", 2)}}{{number_format($item['invoiced_quantity'] * $item['price_amount'], 2)}}
Impuestos Retenciones Totales
@if(isset($request->tax_totals)) @foreach($request->tax_totals as $item) @inject('tax', 'App\Tax') @endforeach @else @endif
Tipo Base Porcentaje Valor
{{$tax->findOrFail($item['tax_id'])['name']}} {{number_format($item['taxable_amount'], 2)}} {{number_format($item['percent'], 2)}}% {{number_format($item['tax_amount'], 2)}}
@if(isset($withHoldingTaxTotal)) @foreach($withHoldingTaxTotal as $item) @inject('tax', 'App\Tax') @endforeach @endif
Tipo Base Porcentaje Valor
{{$tax->findOrFail($item['tax_id'])['name']}} {{number_format($item['taxable_amount'], 2)}} {{number_format($item['percent'], 2)}}% {{number_format($item['tax_amount'], 2)}}
@if(isset($request->tarifaica)) @else @endif
Concepto Valor
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)}}
Total Factura:{{number_format($request->legal_monetary_totals['payable_amount'] + $request->legal_monetary_totals['allowance_total_amount'], 2)}}{{number_format($request->legal_monetary_totals['payable_amount'], 2)}}
@inject('Varios', 'App\Custom\NumberSpellOut')

NOTAS:


{{$notes}}


@if(isset($request->tarifaica))

SON: {{$Varios->convertir(round($request->legal_monetary_totals['payable_amount'] + $request->legal_monetary_totals['allowance_total_amount'], 2))}} M/CTE*********.

@else

SON: {{$Varios->convertir(round($request->legal_monetary_totals['payable_amount'], 2))}} M/CTE*********.

@endif

INFORME EL PAGO AL TELEFONO {{$company->phone}} o al e-mail {{$user->email}}
{{--

FIRMA ACEPTACIÓN:


CC:


FECHA:


--}}