Given a user wants to see if there are erroneous orders in the system
When the user clicks on the Reports item in the navigation bar
Then a hyperlink labeled Multiple Orders should be in a list of reports to run
Given user is viewing the list of reports to run
When the Multiple Orders hyperlink is clicked
Then the user should be presented with a list of customer names and order counts where each customer has more than one open order in the system.
a Multiple Orders link will appear in the Reports view when a user clicks on Reports in the NavBar
When click on Multiple Orders user is taken to a view where all customers who have more than one open order are displayed in a list with the number of open orders to the right of the user's first name and last name
running a GET to customers and joining the Order tables onto each customer (maybe even run conditional in theGETto only retrieve customers who have more than one open order)
check to see how many open orders a customer has by for loop (if aboveGETrequest doesn't work)
if open_orders > 1 then display customer with first and last name to DOM with the number of open orders they have listed beside their name
Given a user wants to see if there are erroneous orders in the system When the user clicks on the
Reports
item in the navigation bar Then a hyperlink labeledMultiple Orders
should be in a list of reports to runGiven user is viewing the list of reports to run When the
Multiple Orders
hyperlink is clicked Then the user should be presented with a list of customer names and order counts where each customer has more than one open order in the system.