Update ShowServicios.php
This commit is contained in:
@@ -190,6 +190,7 @@ class ShowServicios extends Component
|
|||||||
$cuentas_pantallas = Cuentas::fromSub($baseQuery, 'alias')
|
$cuentas_pantallas = Cuentas::fromSub($baseQuery, 'alias')
|
||||||
->where('historiales_count', '<=', $cantidad_restante)
|
->where('historiales_count', '<=', $cantidad_restante)
|
||||||
->orderBy('inicio', 'ASC')
|
->orderBy('inicio', 'ASC')
|
||||||
|
->lockForUpdate()
|
||||||
->get();
|
->get();
|
||||||
|
|
||||||
|
|
||||||
@@ -320,6 +321,7 @@ class ShowServicios extends Component
|
|||||||
$cuenta = Cuentas::fromSub($baseQuery, 'alias')
|
$cuenta = Cuentas::fromSub($baseQuery, 'alias')
|
||||||
->where('historiales_count', '<=', $suma)
|
->where('historiales_count', '<=', $suma)
|
||||||
->orderBy('inicio', 'ASC')
|
->orderBy('inicio', 'ASC')
|
||||||
|
->lockForUpdate()
|
||||||
->get();
|
->get();
|
||||||
|
|
||||||
|
|
||||||
@@ -339,6 +341,7 @@ class ShowServicios extends Component
|
|||||||
$cuenta = Cuentas::fromSub($baseQuery, 'alias')
|
$cuenta = Cuentas::fromSub($baseQuery, 'alias')
|
||||||
->where('historiales_count', '<=', $suma3)
|
->where('historiales_count', '<=', $suma3)
|
||||||
->orderBy('inicio', 'ASC')
|
->orderBy('inicio', 'ASC')
|
||||||
|
->lockForUpdate()
|
||||||
->get();
|
->get();
|
||||||
}
|
}
|
||||||
} elseif ((int) $pantalla_servicio_completa == (int) $this->pantallas_tarjetaPlan) {
|
} elseif ((int) $pantalla_servicio_completa == (int) $this->pantallas_tarjetaPlan) {
|
||||||
@@ -368,6 +371,7 @@ class ShowServicios extends Component
|
|||||||
$cuenta = Cuentas::fromSub($baseQuery, 'alias')
|
$cuenta = Cuentas::fromSub($baseQuery, 'alias')
|
||||||
->where('historiales_count', '<=', $suma2)
|
->where('historiales_count', '<=', $suma2)
|
||||||
->orderBy('inicio', 'ASC')
|
->orderBy('inicio', 'ASC')
|
||||||
|
->lockForUpdate()
|
||||||
->get();
|
->get();
|
||||||
} else {
|
} else {
|
||||||
$cuenta = null;
|
$cuenta = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user