-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
limit the duration of each appointment to more than a few hours #3729
Comments
not a daily reservation limit, but a reservation limit per time. |
I edited the get_slot_selector() function in the edit_entry.php to temporarily increment time by three hours. Now I have a new question, how to detect the interval between two appointments needs to be in accordance with certain policies (e.g. the interval must be 0 or 3, 6, 9 hours, etc.) |
What are you trying to do? I don't think editing |
I use MRBS to manage equipment rentals, each time period is 3 hours or 6 hours and so on, the original settings are OK, but the user can change the time to choose other times. |
But the rentals can start at any time, for example 08:00, 09:00 or 10:00? |
yes,i edit mrbs_sql.inc add these code:
Looks like it works. But I found a bug in my get_slot_selector(), which specifically handles zero-hour calculations.
Any suggestions? |
I think I would take a different approach and introduce a new global variable called Or else I would just introduce a minimum booking length of 3 hours and not worry about making people book for multiples of 3 hours, ie let them book for 4 or 5 hours if they want to. |
well, it's too hard for me. How do I set a minimum booking length? |
Is it possible to limit the duration of each appointment to more than a few hours (e.g. 3 hours), appointments of less than 3 hours are not allowed.
The text was updated successfully, but these errors were encountered: