Update ShowServicios.php
This commit is contained in:
@@ -231,7 +231,9 @@ class ShowServicios extends Component
|
|||||||
/* ---------------- Btn Comprar ---------------- */
|
/* ---------------- Btn Comprar ---------------- */
|
||||||
public function comprar()
|
public function comprar()
|
||||||
{
|
{
|
||||||
$this->validate();
|
$this->validate([
|
||||||
|
'cantidad_tarjetaPlan' => 'required|numeric|min:1',
|
||||||
|
]);
|
||||||
|
|
||||||
if ($this->cantidad_tarjetaPlan == 0) {
|
if ($this->cantidad_tarjetaPlan == 0) {
|
||||||
$this->alert('error', 'La cantidad debe ser mayor a 0', [
|
$this->alert('error', 'La cantidad debe ser mayor a 0', [
|
||||||
|
|||||||
Reference in New Issue
Block a user