This week's book giveaway is in the Open Source Projects forum.
We're giving away four copies of Eclipse Collections Categorically: Level up your programming game and have Donald Raab on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

When booking a room, do CSRs need to provide a date that they are booking the room for ?

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good day all.

When booking a room,
a) CSRs provide the client ID only and just click book button?

OR

b) Do they provide the Date the room is being booked for and the client ID then click book button?
 
Sheriff
Posts: 11606
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A room is available on the date stored in the database file, so they just enter customer id and book the room (when it is of course not yet booked by another CSR)

Kind regards,
Roel
 
Mxolisi Veco
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Roel.
Update ID field only needed.
 
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

my assignemt says (URLyBird 1.1.2:

They take bookings only within 48 hours of the start of room occupancy.


What does this "only within 48 hours" imply?
Doesn't this mean, that if the equation
now + 48 hours < available date
ist true, that I have to avoid booking because of the stated rule?

And since most booking dates in the given database are in the past, booking wouldn't be possible anyways?
This is why I implemented the update-functionality for all fields as well, because if you want to book, you have to make sure:
  • 1. there is an available room with a date in future (because booking rooms in the past just doesn't make sense
  • 2. enable booking only, if it takes place within 48 hours up to the availbility date


  • Kind regards,
    Andy
     
    Roel De Nijs
    Sheriff
    Posts: 11606
    178
    Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Don't highjack someone else's thread to ask your own (unrelated to the original post) question
     
    Andy Jung
    Ranch Hand
    Posts: 150
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator

    Mxolisi Veco wrote:b) Do they provide the Date the room is being booked for and the client ID then click book button?


    I thought it was related to the original question because of the date issue?
     
    Roel De Nijs
    Sheriff
    Posts: 11606
    178
    Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    just create a new thread with as topic "what about the 48-hours rule" and just ask your question there. So it becomes easier for other ranchers (and for us, bartenders) to point to that thread, because it has a very appropriate title.
     
    I’m tired of walking, and will rest for a minute and grow some wheels. This is the promise of this tiny ad:
    Clean our rivers and oceans from home
    https://www.kickstarter.com/projects/paulwheaton/willow-feeders
    reply
      Bookmark Topic Watch Topic
    • New Topic