Update ShowServicios.php
This commit is contained in:
@@ -325,7 +325,7 @@ class ShowServicios extends Component
|
|||||||
}
|
}
|
||||||
|
|
||||||
for ($h = 0; $h < (int) $cantidad_necesaria; $h++) {
|
for ($h = 0; $h < (int) $cantidad_necesaria; $h++) {
|
||||||
if (!empty($cuenta)) {
|
if (!empty($cuenta) && isset($cuenta[$h])) {
|
||||||
|
|
||||||
$cuentasMostar = '';
|
$cuentasMostar = '';
|
||||||
|
|
||||||
@@ -344,6 +344,7 @@ class ShowServicios extends Component
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
$eliminar = Historial_cuenta::where('historial_id', $historial->id)->delete();
|
||||||
$logsGeneral = new Log_general();
|
$logsGeneral = new Log_general();
|
||||||
$logsGeneral->user_id = Auth::user()->id;
|
$logsGeneral->user_id = Auth::user()->id;
|
||||||
$logsGeneral->detalle = 'El usuario ' . Auth::user()->name . ' - ' . Auth::user()->email . ' Tuvo error de "No hay cuentas disponibles" Comprando el servicio ' . $servicioNombre . ' - ' . $cuentasMostar . ' cantidad de ' . $this->cantidad_tarjetaPlan . ' por un valor de $' . $total_valor;
|
$logsGeneral->detalle = 'El usuario ' . Auth::user()->name . ' - ' . Auth::user()->email . ' Tuvo error de "No hay cuentas disponibles" Comprando el servicio ' . $servicioNombre . ' - ' . $cuentasMostar . ' cantidad de ' . $this->cantidad_tarjetaPlan . ' por un valor de $' . $total_valor;
|
||||||
|
|||||||
Reference in New Issue
Block a user