Update ShowServicios.php

This commit is contained in:
lizandrogd
2024-10-24 19:48:30 -05:00
parent 3e0f5d6bcb
commit 0a47de1871
+6 -1
View File
@@ -350,7 +350,12 @@ class ShowServicios extends Component
->Orderby('inicio', 'ASC') ->Orderby('inicio', 'ASC')
->withCount('historiales') ->withCount('historiales')
->where('estado', 'pendiente') ->where('estado', 'pendiente')
->doesntHave('perfil') ->where(function ($query) {
$query->doesntHave('perfil')
->orWhereHas('perfil', function ($query) {
$query->whereNull('historial_id');
});
})
->get(); ->get();
} elseif ((int) $pantalla_servicio < (int) $cantidad_solicitada) { } elseif ((int) $pantalla_servicio < (int) $cantidad_solicitada) {
$suma2 = $pantalla_servicio - $pantallas; $suma2 = $pantalla_servicio - $pantallas;