Update ShowServicios.php
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user