@extends('metronic.base') @section('titulo') Credito fiscal @endsection @section('extrajs') @endsection @section('content') @include('sessions') @include('documento.modals.modalFacturarConCodigo') @if ($documento->posteado != 1) @include('documento.confirmacionfacturar') @endif

Comprobante de Crédito Fiscal

@csrf
{{--
--}}
{{-- --}} @if ($documento->state == '')
@endif

{{--
Cant. Código Descripción Precio unitario Venta no sujeta Venta exenta Venta grabada Facturar
2 cod0001 Flete maritimo $250 $0 $0 $500
Total $250 $0 $0 $500
--}}

FACTURAR

@if ($requisicionconf == "1") @endif @for ($i = 0; $i < count($services); $i++) @csrf @if ($services[$i]->completa_servicio_padre == null) @if ($requisicionconf == "1") @endif @endif @endfor
Servicio Total sin
descuento
Descuento Descuento
lista
Total Asignado DisponibleUnidadFacturar
@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]->completa_servicio_padre == null) @if ($servicesDocumentoTotal[$i] == 0) @if ($documento->state == 'SIN FACTURAR') @else @endif @else @if ($services[$i]->total_pagar_mas_iva - $servicesDocumentoTotal[$i] == 0) FACTURADO @else SOLO PARCIAL @endif @endif @else FACTURADO BONO @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

Facturación parcial

@if ($documento->state == 'SIN FACTURAR')
@csrf
@endif

Resumen

@foreach ($documentoServices as $key => $item) @if ($item->extra != 1) @if ($item->servicio) @endif @if ($item->producto) @endif @if ($item->combo) @endif @endif @endforeach @if ($documento->cancelado == 1) @php $resumen[0]= 0; @endphp @endif @php $re = ($servT[1] + $servT[2] + $servT[3]) * 0.01; $totalmasiva = $servT[1] + $servT[2] + $servT[3] + $resumen[0]; @endphp @if ($documento->cancelado == 1) @php $re = 0; $totalmasiva = 0; @endphp @endif @if ($cliente -> tipo_contribuyente == 'GRAN CONTRIBUYENTE'&& $totalmasiva >=100 ) @endif @if ($cliente -> tipo_contribuyente == 'GRAN CONTRIBUYENTE' && $totalmasiva >=100 ) @endif
# Código Descripción Venta no sujeta Venta exenta Venta gravada Eliminar
{{ $key + 1 }}{{ $item->servicio->service_cod }} {{ $item->servicio->serv_name }}{{ $item->producto->codigo }} {{ $item->producto->producto }}{{ $item->combo->codigo }} {{ $item->combo->combo }} @if ($item->cant_asignado >0) @if ($documento->state == 'SIN FACTURAR') @include('documento.modals.deleteServiceDocumento') @else NO DISPONIBLE @endif @endif
Total
Iva
Retención 1%
Total + Iva
Total
{{--

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