historial_id

This commit is contained in:
lizandrogd
2025-02-27 15:19:52 -05:00
parent 0379968258
commit c0e3284c62
9 changed files with 54 additions and 2 deletions
+4
View File
@@ -406,6 +406,7 @@ class ShowServicios extends Component
$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 . ' Se desligaron todas las cuentas.';
$logsGeneral->tipo = 'compra_error';
$logsGeneral->historial_id= $historial->id;
$logsGeneral->save();
$this->alert('warning', 'No hay cuentas disponibles!', [
'position' => 'top'
@@ -426,6 +427,7 @@ class ShowServicios extends Component
$logsGeneral = new Log_general();
$logsGeneral->user_id = Auth::user()->id;
$logsGeneral->detalle = 'El usuario ' . Auth::user()->name . ' - ' . Auth::user()->email . ' ha comprado el servicio ' . $servicioNombre . ' - ' . $cuentasMostar . ' cantidad de ' . $this->cantidad_tarjetaPlan . ' por un valor de $' . $total_valor . ', Saldo anterior: $' . $saldo_anterior . ', Nuevo saldo disponible: $' . $nuevo_saldo;
$logsGeneral->historial_id= $historial->id;
$logsGeneral->tipo = 'compra';
$logsGeneral->save();
@@ -438,6 +440,7 @@ class ShowServicios extends Component
$logsGeneral->user_id = Auth::user()->id;
$logsGeneral->detalle = 'El usuario ' . Auth::user()->name . ' - ' . Auth::user()->email . ' Tuvo un error con el cobro del servicio ' . $servicioNombre . ' - ' . $cuentasMostar . ' cantidad de ' . $this->cantidad_tarjetaPlan . ' por un valor de $' . $total_valor;
$logsGeneral->tipo = 'compra_error';
$logsGeneral->historial_id= $historial->id;
$logsGeneral->save();
$eliminar = Historial_cuenta::where('historial_id', $historial->id)->delete();
$this->alert('warning', 'Error en el cobro, comuniquese con soporte!', [
@@ -452,6 +455,7 @@ class ShowServicios extends Component
$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 . ' No se desconto el saldo, ni se asignaron cuentas.';
$logsGeneral->tipo = 'compra_error';
$logsGeneral->historial_id= $historial->id;
$logsGeneral->save();
$this->alert('warning', 'No hay cuentas disponibles!', [
'position' => 'top'