@extends('metronic.base') @section('titulo') Factura @endsection @section('extrajs') @endsection @section('content') @include('sessions') @include('documento.modals.modalFacturarConCodigo') @if ($documento->posteado != 1 && $documento->cancelado == 0) @endif

Factura de Consumidor Final

@csrf
{{--
--}}
{{-- --}} @if ($documento->posteado != 1 && $documento->cancelado == 0)
@endif

DISTRIBUCIÓN DE ITEMS

@for ($i = 0; $i < count($services); $i++) @csrf @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 ($services[$i]->extra == 1) {{$services[$i]->serv_name}} - Gasto @else {{$services[$i]->serv_name}} @endif --}} @php $mult = 1; if ($services[$i]->impuesto == 1) { $mult = 1.13; } @endphp @if ($servicesDocumentoTotal[$i] == 0 && $documento->cancelado != 1) @else @if ($services[$i]->total_pagar_mas_iva - $servicesDocumentoTotal[$i] == 0) FACTURADO @else @if ($documento->cancelado == 1) ANULADO @else SOLO PARCIAL @endif @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 a coste $0.00 del producto {{ $item2->Producto->producto }}
@endif

FACTURACION PARCIAL

@csrf
@if ($documento->posteado != 1 && $documento->cancelado == 0)
@endif

Resumen

@if ( $documento->cancelado == 1) @php $resumen[0] = 0; @endphp @endif @php $re = $resumen[3]; $total = $resumen[8]; @endphp @if ( $documento->cancelado == 1) @php $re = 0; @endphp @endif @if ($cliente -> tipo_contribuyente == 'GRAN CONTRIBUYENTE' && $total >=100) @else @php $re = 0; @endphp @endif @if ( $documento->cancelado == 1) @php $resumen[6] = 0; @endphp @endif
# Código Descripción Venta no sujeta Venta exenta Venta gravada Eliminar
Total
Iva
Retención 1%
Total

COMENTARIOS

{{--

Cuadro resumen

{{--
SUMAS  
IVA
SUB-TOTAL
(+) IVA PERCIBIDO
(-) IVA RETENIDO
VENTA NO SUJETA
VENTA EXENTA
VENTA TOTAL
--}} {{-- @foreach ($documentoServices as $item) @if ($item->extra == 1) @endif @endforeach
Gasto por cuenta ajena VALOR
{{ $item->servicio->serv_name }}
--}} {{--
Total de gastos
Entregado por cliente
Sub total
Total a cancelar
--}} @endsection