Your Lab 9 repository should include all your relevant files (and folders) from Lab 8. In other words I should be able to clone the repository, run your server, and test your results without any extra steps other than copying in credentials.json. You could accomplish this by forking your Lab 8 repo or using these nifty techniques to duplicate your Lab 8 repository (either the first or third option on that page would work for you).
Be certain that the user mcphee@146.57.33.% has the appropriate privileges to execute all of the SQL commands used by your code.
Now it is time to finish off this register project. As you implement the functionality below, remember that your primary mode of interaction is through your REST interface.
till_items and update your table to reflect the new pricing. Talk it over with your partners until you are convinced that you understand what needs to be done... then relax and congratulate yourselves on a job well done.Add REST handlers to deal with SALE and VOID. You can decide whether or not to use till_buttons or hard-code the buttons into your angular template. Produce your logic and button accordingly:
Add a void button that will erase all the current contents in the register,
Add a sale button. (more on this below)
Clicking on sale should implement special functionality that copies the till_items to a special archive (you will have to make an archive table). The archive table should have a new field called transactionID and user. (This is breaking some of the rules of normalization... be prepared to tell me in person what the potential problems are and the proper way to fix them). You can achieve this functionality however you like as long as it occurs on the DBF server. Both procedures and triggers are viable options. Be sure that your sale functionality adds an entry in the archive denoting the clicking of the sale button.
transactionSummary that summarizes the transactions in the archive table. It should show:|field | Description |
-------------
-----------------------------------------------------
transactionID
The TRANSACTION ID ON which you will be grouping
startTime
earliest TIME stamp of a button IN that TRANSACTION
stopTime
latest TIME stamp of a button IN that TRANSACTION
duration
difference IN seconds of stopTime AND startTime
user
user's name
total
total amount IN sale
ticketize function (on the DBF side) to generate a JSON object that would, presumably, be used by a function to print out the receipt