Timeslot Generation Logic

This is the engine behind availability.


System checks all layers:

Order of priority:

✔ 1. Staff working hours

✔ 2. Staff breaks

✔ 3. Staff time-off

✔ 4. ServiceConfig rules

✔ 5. Staff–Service mapping rules

✔ 6. Lead time

✔ 7. Max advance days

✔ 8. Disabled dates

✔ 9. Existing appointments

✔ 10. Holds (not expired)

If ANY layer blocks → timeslot not shown.


Flow Summary

Last updated