Autoaction to assing Parking
Posted: Fri Dec 17, 2021 10:18 pm
Lets say that we have 10 Parking places for guests and we would like that first 10 reservations get this spots (so if someone booked earlier than others he has the right to get the spot).
Is there anyway to create an autoaction that would use some math, and than add "Private parking" to Flag field for first 10 reservations?
1. So when a new reservation is received the autaction would check weather during the guests stay : Reservations with "Private Parking" < 10, if yes than it would add "Private parking" to the Flag field of the new reservation.
2. Also would it be possible that if someone with "Private Parking" cancels the reservation, that the autoaction checks who is the "next in line" to get this spot assigned (the booking with earliest booking date- if there are more bookings for this dates that couldn't get the spot previously)
I know its a pretty complicated question, but just wondering weather there are any ideas, how we could automate the parking assignment.
Thank you
Is there anyway to create an autoaction that would use some math, and than add "Private parking" to Flag field for first 10 reservations?
1. So when a new reservation is received the autaction would check weather during the guests stay : Reservations with "Private Parking" < 10, if yes than it would add "Private parking" to the Flag field of the new reservation.
2. Also would it be possible that if someone with "Private Parking" cancels the reservation, that the autoaction checks who is the "next in line" to get this spot assigned (the booking with earliest booking date- if there are more bookings for this dates that couldn't get the spot previously)
I know its a pretty complicated question, but just wondering weather there are any ideas, how we could automate the parking assignment.
Thank you