Add an order: used when a new order is placed.
- Input:
- the room number that places the order.
- the time and date when the order was placed (could be automatically generated by the system actually.)
- the time and date when the service is going to be delivered.
- the service item number or the name of the service (eg. wake-up call, food, etc.)
- the number of items ordered
- the employee who accepted the order (employee ID )
- extra field for comments.
Order number should also be included.
- Output:
- a new record to be added (internal)
- a message box stating the command is successful (external to user)
- if the item number is not given (and the name of the service is given,)
the system should search for the corresponding item number.
- Error:
- Generated when any field above in the input is missing.
- Syntax errors of the input data (eg: time is not in specified
format)
- Generated when the data entered violates the integrity of the
database: eg. : number of dishes is not positive integer, the
item number doesn't exist, the room number doesn't exist etc.
- Record already exists.
******* Note: from now on, we will understand that missing input, and syntax
errors will actually can happen anywhere that requires input and error
message of some sort will be generated as we will leave out those two obvious
errors in our "Error" section.