Update ShowServicios.php

This commit is contained in:
lizandrogd
2025-07-07 17:42:20 -05:00
parent 3e7f9542c7
commit a40ea21787
+4
View File
@@ -190,6 +190,7 @@ class ShowServicios extends Component
$cuentas_pantallas = Cuentas::fromSub($baseQuery, 'alias')
->where('historiales_count', '<=', $cantidad_restante)
->orderBy('inicio', 'ASC')
->lockForUpdate()
->get();
@@ -320,6 +321,7 @@ class ShowServicios extends Component
$cuenta = Cuentas::fromSub($baseQuery, 'alias')
->where('historiales_count', '<=', $suma)
->orderBy('inicio', 'ASC')
->lockForUpdate()
->get();
@@ -339,6 +341,7 @@ class ShowServicios extends Component
$cuenta = Cuentas::fromSub($baseQuery, 'alias')
->where('historiales_count', '<=', $suma3)
->orderBy('inicio', 'ASC')
->lockForUpdate()
->get();
}
} elseif ((int) $pantalla_servicio_completa == (int) $this->pantallas_tarjetaPlan) {
@@ -368,6 +371,7 @@ class ShowServicios extends Component
$cuenta = Cuentas::fromSub($baseQuery, 'alias')
->where('historiales_count', '<=', $suma2)
->orderBy('inicio', 'ASC')
->lockForUpdate()
->get();
} else {
$cuenta = null;