Hi Cindi,
I am close to submit, I want to review the way I implemented the booking method:
I do have these requirements :
-"They take bookings only within 48 hours of the start of room occupancy"
-The field owner (customer) is described as follows "If this field is all blanks, the record is available for sale"
- date field has the following description : "Date available : The single night to which this record relates, format is yyyy/mm/dd."
1- which parameters do you provide when booking the room?
I povide the booking date and the duration (which the number of nights the room is booked for) - the date field will be the booking date increased by the duration. I wonder if I am providing more parameters than required?
2- I am getting confused about the role of the owner and date fields, In my implementation the booking request is accepted If (date is today and owner is empty) or (date is tomorrow and owner is empty) or (date is after tomorrow and owner is empty). am I wrong?
3- If available date is yesterday and owner is not empty, do we allow the room to be booked? (it is available but owner is not empty!)
5- If date is after today +48 hours and the owner is empty, do we allow the room to be booked. (it is beyond the scope of 48 hours but not affected to any one!)
Regards