Hello everyone,

I want to know if you can set a maximum of bookings.

For example, use this form to book an appointment. Daily maximum a person can to book.

How can I limit the number of bookings and automatically change the status of the calendar?

I know there are other modules around but for now I'm happy with that.
Unfortunately, if it is not able to make these requests, I will be forced to change form.

Thank you

Comments

mattyy21 created an issue.

fietserwin’s picture

As far as I think to understand you correctly, this sounds like rules integration. This module provides the integration (trigger events, data, ...), site builders use Rules to capture these events and so something with it.

Unfortunately, currently this module does not have Rules integration,so that would have to be developed. however, in the foreseeable future I don't have time to do so, not even paid. So if you can find another developer willing to do so, consider this:
- This module does define the calendars as entities, but no use is made of the CRUD functionality of the Entity API module. Doing so would give us Rules integration as well, as Entity CRUD actions trigger Rules events. Thus one way of doing this would be to port our internal CRUD actions to an Entity CRUD controller.
- Another way to implement this would be to add Rules event triggers to our own CRUD actions.

For the long term the former would be better, as this would also be the way to revisioning and other features, on the short term, the latter option will probably be faster.

mattyy21’s picture

Is it possible with computed field?
Which function I create for change status of calendar after (for example) 3 bookings?

zmove’s picture

Same here, it's very ofter in booking to have for example 3 rooms. When the 3 rooms are booked, the date is considered as booked.

There are some modules to do that (rooms, BAT) but I really like the simplicity of this module, it does exactly what I need except that point.