@extends('metronic.base') @section('titulo') factuación exportación @endsection @section('extrajs') @endsection @section('content') @include('sessions') @include('documento.modals.modalFacturarConCodigo') @if ($documento->posteado!=1 ) @endif

Factura Exportación

@csrf
{{--
--}}
{{-- --}} @if ($documento->state=="SIN FACTURAR")
@endif

DISTRIBUCIÓN DE ITEMS

@for ($i = 0; $i < count($services); $i++) @csrf @if ($services[$i]->completa_servicio_padre == null) @endif @endfor
Servicio Total sin
descuento
Descuento Descuento
lista
Total Asignado Disponible Facturar
@if ($services[$i]->servicio) {{ $services[$i]->servicio }} ({{ $services[$i]->cantidad }}) @endif @if ($services[$i]->producto) {{ $services[$i]->producto }} ({{ $services[$i]->cantidad }}) @endif @if ($services[$i]->combo) {{ $services[$i]->combo }} ({{ $services[$i]->cantidad }}) @endif @if ($servicesDocumentoTotal[$i] == 0) @else @if ($services[$i]->total_pagar_mas_iva - $servicesDocumentoTotal[$i] == 0) FACTURADO @else SOLO PARCIAL @endif @endif

@if (count($arrayBonificaciones)>0)
Bonificaciones
@foreach ($arrayBonificaciones as $item2) @if ($item2->regalia >0 ) @endif @endforeach
Codigo Producto Bonificaciones Info
{{ $item2->Producto->codigo }} {{ $item2->Producto->producto }} {{ $item2->regalia }} Por cada {{ $item2->cantidad }} comprados del producto {{ $item2->productoPadreName }}, va recibir {{ $item2->cantidad_bono }} como bonificaciones de {{ $item2->Producto->producto }}
@endif


@if ($documento->state=="SIN FACTURAR")

FACTURA PARCIAL

@csrf
{{--
--}} {{--
--}}
@endif

Listado

@php $suma_ventas_afectadas=0; @endphp @foreach ($documentoServices as $key=> $item) @php $suma_ventas_afectadas += floatval($item->cant_asignado) @endphp @if ($item->servicio) @endif @if ($item->producto) @endif @if ($item->combo) @endif @endforeach
Cant. Código Descripción Precio unitario Ventas afectadas Eliminar
{{ $key+1 }}{{ $item->servicio->service_cod }} {{ $item->servicio->serv_name }}{{ $item->producto->codigo }} {{ $item->producto->producto }}{{ $item->combo->codigo }} {{ $item->combo->combo }} @if ($documento->state == 'SIN FACTURAR') @include('documento.modals.deleteServiceDocumento') @else NO DISPONIBLE @endif @include('documento.modals.deleteServiceDocumento')
Total
{{-- @foreach ($documentoServices as $item) @if($item->extra==1) @endif @endforeach
Gasto por cuenta ajena VALOR
{{$item->servicio->serv_name}}
--}} {{--

Resumen

IVA
Total de gastos
Entregado por cliente
Sub total
Total a cancelar
--}} @endsection