Update ShowPromociones.php
This commit is contained in:
@@ -364,7 +364,7 @@ class ShowPromociones extends Component
|
||||
$logsGeneral = new Log_general();
|
||||
$logsGeneral->user_id = Auth::user()->id;
|
||||
$logsGeneral->detalle = 'El usuario ' . Auth::user()->name . ' - ' . Auth::user()->email . ' ha comprado la promocion ' . $this->consulta->nombre . ' - ' . $this->consulta->descripcion . ' cantidad de ' . $this->historial->cantidad . ' por un valor de $' . $this->historial->valor .', Saldo anterior: $'.$saldo_anterior.', Nuevo saldo disponible: $'.$nuevo_saldo;
|
||||
$logsGeneral->estado = 'compra';
|
||||
$logsGeneral->tipo = 'compra';
|
||||
$logsGeneral->save();
|
||||
|
||||
$this->modalComprarPromo = false;
|
||||
@@ -405,7 +405,7 @@ class ShowPromociones extends Component
|
||||
$logsGeneral = new Log_general();
|
||||
$logsGeneral->user_id = Auth::user()->id;
|
||||
$logsGeneral->detalle = 'El usuario ' . Auth::user()->name . ' - ' . Auth::user()->email . ' ha comprado la promocion ' . $this->consulta->nombre . ' - ' . $this->consulta->descripcion . ' cantidad de ' . $this->historial->cantidad . ' por un valor de $' . $this->historial->valor ?? '' . ' y algunos han quedado pendientes'.', Saldo anterior: $'.$saldo_anterior.', Nuevo saldo disponible: $'.$nuevo_saldo;
|
||||
$logsGeneral->estado = 'compra';
|
||||
$logsGeneral->tipo = 'compra';
|
||||
$logsGeneral->save();
|
||||
|
||||
$this->credenciales($this->historial);
|
||||
@@ -437,7 +437,7 @@ class ShowPromociones extends Component
|
||||
$logsGeneral = new Log_general();
|
||||
$logsGeneral->user_id = Auth::user()->id;
|
||||
$logsGeneral->detalle = 'El usuario ' . Auth::user()->name . ' - ' . Auth::user()->email . ' Cancelo la compra del plan ' . $this->consulta->nombre . ' cantidad de ' . $this->historial->cantidad . ' por un valor de $' . $this->historial->valor.' No se desconto el saldo, ni se asignaron cuentas.';
|
||||
$logsGeneral->estado = 'compra_cancelada';
|
||||
$logsGeneral->tipo = 'compra_cancelada';
|
||||
$logsGeneral->save();
|
||||
$this->alert('success', 'Compra cancelada!', [
|
||||
'position' => 'top'
|
||||
|
||||
Reference in New Issue
Block a user