@extends('base') @section('titulo') credito fiscal @endsection @section('content')
Listado de documentos
Detalle de documento
@include('sessions') @include('compra.modals.modalFacturar') @include('documento.modals.deleteServiceDocumento') @if ($documento->posteado!=1 )
Facturar
@endif
Factura del Exterior
@csrf
Proveedor:
{{--
Fecha:
--}}
Direccion:
{{--
Registro/COD:
--}}
Pais:
Ciudad:
NIT:
{{--
Entregado por cliente:
--}} {{--
Exportacion a Cuenta de:
--}}
Cond. de la operación:
{{--
--}} @if ($documento->state=="") {{--
Guardar
--}} @endif
@csrf
Concepto:
{{ $documento->concepto }}
Guardar
DISTRIBUCION DE SERVICIOS
@for ($i=0; $i < count($services); $i++) @endfor
Servicio
Total
Asignado
Disponible
@if ($services[$i]->extra==1) {{$services[$i]->serv_name}} - Cta. Ajena @else {{$services[$i]->serv_name}} @endif
$
{{number_format($services[$i]->monto,2)}}
$
{{number_format($servicesDocumentoTotal[$i] ,2)}}
$
{{number_format($services[$i]->monto - $servicesDocumentoTotal[$i],2) }}
@if ($documento->state=="")
@csrf
Seleccione el servicio
@foreach ($servicesSelect as $service) @if ($service->extra==1)
{{$service->serv_name}} - Cta. Ajena
@else
{{$service->serv_name}}
@endif @endforeach
Monto
Guardar
@endif
@php $suma_ventas_afectadas=0; @endphp @foreach ($documentoServices as $item) @php $suma_ventas_afectadas += floatval($item->cant_asignado) @endphp @endforeach
Cant.
Código
Descripción
Precio unitario
Compras afectadas
Eliminar
1
{{$item->servicio->service_cod}}
{{$item->servicio->serv_name}}
$
{{number_format($item->cant_asignado,2)}}
$
{{number_format(1 * $item->cant_asignado,2)}}
Total
$
{{number_format( $servT[0],2) }}
$
{{number_format($suma_ventas_afectadas,2)}}
@endsection