phpScheduleIt
May 21, 2013, 04:58:06 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: phpScheduleIt 2.4.2 has been released!
Home
Help
Login
Register
phpScheduleIt
>
Help and Support
>
phpScheduleIt 1.2.x
>
reservation time limit
Pages: [
1
]
« previous
next »
Print
Author
Topic: reservation time limit (Read 585 times)
smashdes
Newbie
Karma: 0
Posts: 6
reservation time limit
«
on:
November 07, 2011, 05:51:46 AM »
Hi,
I'm using this fantastic script for a tennis club.
We have a regulation that has these following limit to the reservation:
-a member can book courts for the following week only from 8am of the previous saturday.
For example if I want to book a now for sunday the 13th I have to wait until saturday at 8am.
How can I implement this rule with phpSI ?
Logged
Nick
Administrator
Hero Member
Karma: 15
Posts: 5419
Re: reservation time limit
«
Reply #1 on:
November 07, 2011, 02:28:18 PM »
Enforcing something like 8AM won't be totally possible, but you can set the minimum notification time for each resource. If you set this to 168 (24 hours * 7 days), then nobody would be able to reserve anything more than 7 days in advance.
I know that doesn't solve your exact problem. To enforce that specific rule you'd need to write some code.
Logged
smashdes
Newbie
Karma: 0
Posts: 6
Re: reservation time limit
«
Reply #2 on:
November 07, 2011, 07:06:15 PM »
.. I don't think is the right solution because...
every reservation for the following week can be done only starting from saturday..
So if I'm on sunday 1st I've to wait until saturday 7th to book for sunday the 8th..
Logged
Nick
Administrator
Hero Member
Karma: 15
Posts: 5419
Re: reservation time limit
«
Reply #3 on:
November 14, 2011, 01:50:12 PM »
For this you'd need to write some code to enforce that rule. There are a series of checks now being made in lib\Reservation.class.php (check_xxx). You'd want to make another one of those and call it from add_res() and mod_res().
Logged
smashdes
Newbie
Karma: 0
Posts: 6
Re: reservation time limit
«
Reply #4 on:
November 14, 2011, 02:48:09 PM »
perfect! thank you
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Announcements
=> Open Discussion
=> Donations
-----------------------------
Help and Support
-----------------------------
=> phpScheduleIt 2.x
=> EspaƱol
=> phpScheduleIt 1.2.x
=> phpScheduleIt 1.1.x
=> New Features and Suggestions
=> Developers
-----------------------------
Bugs
-----------------------------
=> phpScheduleIt 1.2.x
=> phpScheduleIt 1.1.x
-----------------------------
Modifications
-----------------------------
=> Post Modifications
=> Request Modification
-----------------------------
Development
-----------------------------
=> phpScheduleIt 2.0
-----------------------------
Off-Topic
-----------------------------
=> Non-phpScheduleIt Discussion
Loading...