It is indicated in the assignment (UrlyBird) : �They take bookings only within 48 hours of the start of room occupancy�
It also describes the field owner as follows: �If this field is all blanks, the record is available for sale�
It describes the date field as follows: �Date available : The single night to which this record relates, format is yyyy/mm/dd.�
In my implementation: 1- On a create operation, I choose to provide all values except the customer, I suppose the newly created record is for future booking purpose.
2- The record is ready for booking if date is today (the record is available for today) Tomorrow or after tomorrow regardless of what does the owner field contain.
I am worried about this spec about the field owner "If this field (owner) is all blanks, the record is available for sale". The booking system is Based on the record availability and not on the content of the owner field.