actualizar

This commit is contained in:
Felipe
2024-01-23 17:14:46 -05:00
parent 82de69e854
commit b01b62a09b
2 changed files with 7 additions and 16 deletions
+3 -2
View File
@@ -606,6 +606,7 @@ class ShowPlanes extends Component
{
//dd($tarifa);
$this->editarTarifaRol = true;
$this->informacionTarifaRol = $tarifa;
$this->roles_modTarifas = $tarifa['rol_id'];
@@ -613,7 +614,7 @@ class ShowPlanes extends Component
$this->precio_modTarifas = $tarifa['valor'];
$this->utilidad = $tarifa['utilidad'];
$this->diasTarifa = $tarifa['dias'];
$this->estadoTarifa = $tarifa['estado'];
$this->estadoTarifa = $tarifa['estado'] == 'activo' ? 1 : 0;
$this->servicio_modTarifas = $tarifa['servicio_id'];
}
@@ -633,7 +634,7 @@ class ShowPlanes extends Component
'dias' => $this->diasTarifa,
'valor' => $this->precio_modTarifas,
'utilidad' => $this->utilidad,
'estado' => $this->estadoTarifa,
'estado' => $this->estadoTarifa == 1 ? 'activo' : 'inactivo',
'rol_id' => $this->roles_modTarifas,
'servicio_id' => $this->servicio_modTarifas