From 3e0f5d6bcbf48ae6f4c60fd204355dcdfe30f230 Mon Sep 17 00:00:00 2001 From: lizandrogd <77708265+lizandrogd@users.noreply.github.com> Date: Thu, 24 Oct 2024 19:47:22 -0500 Subject: [PATCH] Revert "Update ShowServicios.php" This reverts commit 4d36e3c52dc2fc23537a81afff7324299838e7cf. --- app/Http/Livewire/ShowServicios.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/app/Http/Livewire/ShowServicios.php b/app/Http/Livewire/ShowServicios.php index 72f3d12..317486b 100755 --- a/app/Http/Livewire/ShowServicios.php +++ b/app/Http/Livewire/ShowServicios.php @@ -341,22 +341,16 @@ class ShowServicios extends Component } // dd($cuenta); } elseif ((int) $pantalla_servicio_completa == (int) $this->pantallas_tarjetaPlan) { - //Cuentas completas $cantidad_necesaria = $this->cantidad_tarjetaPlan; $cuenta = Cuentas::where('servicio_id', $this->servicio_id) - //->whereDate('inicio', '>=', $this->fecha) + ->whereDate('inicio', '>=', $this->fecha) ->whereDate('vencimiento', '>=', $this->fecha_final_1) ->whereDate('vencimiento', '<=', $this->fecha_final_2) ->Orderby('inicio', 'ASC') ->withCount('historiales') ->where('estado', 'pendiente') - ->where(function ($query) { - $query->doesntHave('perfil') - ->orWhereHas('perfil', function ($query) { - $query->whereNull('historial_id'); - }); - }) + ->doesntHave('perfil') ->get(); } elseif ((int) $pantalla_servicio < (int) $cantidad_solicitada) { $suma2 = $pantalla_servicio - $pantallas; @@ -383,8 +377,6 @@ class ShowServicios extends Component $cuentasMostar = ''; for ($h = 0; $h < (int) $cantidad_necesaria; $h++) { - //dd($cuenta); - if (!empty($cuenta) && isset($cuenta[$h])) { $esta_error = false; $cuentasMostar = '';