| Author |
*48hrs Rule (Solution method)*
|
Smith Jone
Greenhorn
Joined: Nov 15, 2006
Posts: 11
|
|
You should understand to 48hrs = within 2 days :roll: 48hrs rule is not "MUST". Fix Your Windows Date(or Linux Date and so on),and You can test this rule. [ November 25, 2006: Message edited by: Smith Jone ]
|
SCJP 5.0<br />SCJD(In progressing!)<br />SCWCD(planing)<br />SCBCD(planing)
|
 |
Edward Chan
Greenhorn
Joined: Nov 18, 2006
Posts: 3
|
|
|
so do you guys actually ask for date of occupancy from user when they want to make a booking? and use this date to compare with the current system date to see if the difference is greater than 20 hours.
|
 |
Mihai Radulescu
Ranch Hand
Joined: Sep 18, 2003
Posts: 912
|
|
Smith, You are right, a room is available if the rooms date field value is between the allowed interval(today, today + 2 days). Edward, You need to check each record before booking, you can find this in the specs. I am not shore about this :
and use this date to compare with the current system date to see if the difference is greater than 20 hours.
I mean this is wrong ! Regards M
|
SCJP, SCJD, SCWCD
|
 |
Edward Chan
Greenhorn
Joined: Nov 18, 2006
Posts: 3
|
|
Edward, You need to check each record before booking, you can find this in the specs. I am not shore about this : quote: and use this date to compare with the current system date to see if the difference is greater than 20 hours. I mean this is wrong !
I am sorry my mistake. Suppose to be 48 hours. Actually my understanding of this 48 hours requirement is like this: for example, a customer wants to be a booking on wednesday, but today's date is monday. Therefore it's greater than 48 hours and the program reject user to make this booking. Am i correct? thanks ed
|
 |
 |
|
|
subject: *48hrs Rule (Solution method)*
|
|
|