• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URLyBird Owner field - Booking

 
Oguz Ozun
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I have a question about booking especially about owner field of the record. In the assignment, there is a statement like that

" Field descriptive name: Customer holding this record
Database field name: owner
Field length: 8
Detailed description: The id value (an 8 digit number) of the customer who has booked this. Note that for that application, you should assume that customers and CSRs know their customer ids. The system you are writing does not interact with these numbers, rather it simply records them. If this field is all blanks, the record is available for sale"


As far as what I understood from that statement, customer id can be anything and during booking process, it should be provided by customers or CSRs. My question is where should I get this information? Should I provide a dialog box for that information or should I put a number randomly generated at the start of the application because there is a sentence in the spec states that "The system you are writing does not interact with these numbers"?

Thanks in advance ...
 
R van Vliet
Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Oguz,

I've assumed that that means that the customers know their customer ID. Then when a CSR adds a booking the customer will provide their customer ID (or the CSR already has it, it's irrelevant for this discussion) and the CSR will enter it.

In other words, unbooked rooms should have an empty owner/customer id field. Once the CSR presses a book button or something similar, he or she should be able to enter the 8 digit customer id and your program will have to persist that number to the database.

A small disclaimer, this is how I understood the assignment. Some parts of the assignment are relatively vague so it's hard to come up with a definite answer. That said, as long as you document your doubts and the motivation behind your decision in choices.txt all should be fine.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic