Update ShowServicios.php

This commit is contained in:
lizandrogd
2024-07-21 14:00:43 -05:00
parent 55f95f2e17
commit cbd5ebbbbc
+3 -1
View File
@@ -231,7 +231,9 @@ class ShowServicios extends Component
/* ---------------- Btn Comprar ---------------- */
public function comprar()
{
$this->validate();
$this->validate([
'cantidad_tarjetaPlan' => 'required|numeric|min:1',
]);
if ($this->cantidad_tarjetaPlan == 0) {
$this->alert('error', 'La cantidad debe ser mayor a 0', [