Originally posted by Ta Ri Ki Sun:
Redundant code?
These are actually the same objects implementing two different interfaces and used in the search and the booking functions (the search can be configured with search filters, the book() with so called "constraints"), there is the choice whether to place it in searching, booking, both or none at all
Originally posted by Ta Ri Ki Sun:
I'm with you, but surely the system is not built only for booking. A user may only be interested to know which rooms/dates have in fact been booked, or by which client, perhaps even tracking a client's stay at various hotels over a certain period, and your GUI will never show them that.
Besides the system has search functionality, so the users can narrow their results.
Also consider that cancellation of a booking, if implemented in future, would require more coding effort than it would otherwise need.
Well, at least that is what I understand from the specification: That it is for booking
Since the nature of the business described in the URLyBird project is simply to support CSRs selling rooms I would not put any tracking functionality into that application - this would be more CRM-related. Could be part of a larger system though...
But you truly are right - cancellation would not be easy if the search can not give you at least the records that are already booked, an aspect I have not thought about yet.
Thanks
Wei-ju
"The UrlyBird catches the certificate. And he's gonna FlyByNight"<br /> <br />SCJP 1.2/5.0, SCJD, SCBCD, SCWCD, SCEA