Skip to main content
The Reservations module is available to both Administrators and Clients. Administrators can see and manage all reservations in the system. Clients can only see reservations linked to their own client record and can cancel their own pending reservations.

Viewing Reservations

Navigate from the dashboard to Reservaciones. The list shows the following columns:
ColumnDescription
CódigoAuto-generated unique code (e.g., RES-9912)
ClienteGuest name linked to the reservation
HabitaciónRoom number assigned
IngresoCheck-in date (DD/MM/YYYY)
SalidaCheck-out date (DD/MM/YYYY)
EstadoReservation status
AcciónEdit / Delete (Administrators) or Cancel (Clients, Pending only)
Administrators see all reservations sorted by check-in date ascending. Clients see only their own reservations, filtered by their linked client record.

Creating a Reservation

1

Click '+ Nueva Reserva'

On the reservations page, click + Nueva Reserva. This opens /views/reservaciones/nueva_reserva.php.If there are no active clients or no available rooms, an error message is shown instead of the form.
2

Select the client

Administrators choose from a dropdown of all active clients. Clients are automatically assigned to their own linked client record — the selector is hidden.
3

Select a room

Choose an available room from the dropdown. Only rooms with status Disponible are listed, along with their nightly price.
4

Set the dates

Enter the Fecha de Entrada (check-in) and Fecha de Salida (check-out). The check-out date must be strictly after the check-in date — the system rejects equal or reversed dates.
5

Save the reservation

Click Crear Reserva. The system:
  1. Generates a unique code in the format RES-XXXX (e.g., RES-4731).
  2. Inserts the reservation with status Pendiente.
  3. Updates the assigned room’s status to Ocupada.
  4. Redirects you to the reservation list with a success message.

Updating a Reservation

Editing is available to Administrators only.
1

Click 'Editar' on the reservation row

On the reservations list, click Editar next to the reservation. This opens /views/reservaciones/editar_reserva.php?id={id}.
2

Modify the reservation details

You can update:
  • Cliente — Reassign to a different active client
  • Habitación — Reassign to a different available room (or the currently assigned one)
  • Fecha de Entrada and Fecha de Salida — Adjust the stay dates
  • Estado — Change between Pendiente, Confirmada, or Cancelada
3

Save changes

Click Actualizar Reserva. Changes are saved and you are returned to the reservation list.

Cancelling a Reservation

Clients can cancel their own reservations, but only if the current status is Pendiente. Reservations that are already Confirmada or Cancelada show “No cancelable” instead of a cancel button. To cancel, click the Cancelar button on the reservation row. A confirmation modal appears before any action is taken.
Cancelling a reservation cannot be undone. Once cancelled, the status cannot be changed back by the Client — an Administrator must edit the reservation to restore it.
Administrators can also permanently delete reservations using the Eliminar button, which removes the record from the database entirely.

Reservation Statuses

StatusDescription
PendienteDefault status when a reservation is first created
ConfirmadaReservation has been confirmed by an Administrator
CanceladaReservation was cancelled; the room may still show as Occupied until updated

Date Validation

The check-in date must be strictly before the check-out date. If fecha_entrada >= fecha_salida, the system rejects the submission and displays an error: “La fecha de salida debe ser mayor a la fecha de entrada.”