sunsetsystems wrote on Thursday, May 03, 2012:
I’ve been sitting on this for a while hoping to find time to refactor some code to make it more polished, but that hasn’t happened. Since it’s important I want to go ahead and get it committed.
These are improvements to the “find available” feature when making appointments.
It adds checking for double-booking at appointment save time, which can easily happen when two people are booking appointments at the same time. In addition a “wsome” permission is added for patients/appt access, for which double booking is forbidden. If instead the normal “write” permission is granted, then you are warned of double booking but may do it anyway.
Also some bugs are fixed:
1. The actual event duration from the event edit form is used, not the default for its category.
2. “Exception dates” are now respected when considering available times.
3. When editing an existing event, its current time slot is now considered available. This allows choosing a new time that overlaps it.
The commit for review is here: