update
This commit is contained in:
@@ -95,6 +95,8 @@ class ShowPromociones extends Component
|
||||
public $img_ver;
|
||||
public $fecha_editarPromo;
|
||||
public $mensaje_servicio;
|
||||
|
||||
public $utilidad;
|
||||
|
||||
|
||||
public $categoria_photo;
|
||||
@@ -176,6 +178,7 @@ class ShowPromociones extends Component
|
||||
//$this->precioAntes = $consulta_verpromocion->tarifas->first()->valor;
|
||||
|
||||
$this->precioAhora = $consulta_verpromocion->precio;
|
||||
$this->utilidad = $consulta_verpromocion->utilidad ?? '';
|
||||
$this->imagen = $consulta_verpromocion->img_publicidad;
|
||||
$this->fechaLimite = $consulta_verpromocion->fecha_limite;
|
||||
$this->nombrePromo = $consulta_verpromocion->nombre;
|
||||
@@ -224,6 +227,7 @@ class ShowPromociones extends Component
|
||||
$historial->cliente_id = $usuario_id;
|
||||
$historial->cantidad = $this->cantidad_comprarPromo;
|
||||
$historial->nombre_cliente = $this->nombre_comprarPromo;
|
||||
$historial->utilidad = $this->utilidad*$this->cantidad_comprarPromo;
|
||||
$historial->save();
|
||||
|
||||
for ($p = 0; $p < (int)$this->cantidad_comprarPromo; $p++) {
|
||||
|
||||
Reference in New Issue
Block a user