As a user who is an employee, I need to be able to adjust the inventory on our products
AC
WHEN an employee visits any of the product pages
THEN an inventory adjustment form will display for each product
AND submitting the form will update the quantity available in the database
Dev Notes
complete this ticket after SingleBook, SingleBeer, SingleWhiskey cards are styled
[x] create a productData.js file in data with a updateInventory function that connects to UpdateProductQuantity on the back end
[x] pass the isEmployee state to each of the product pages & single product components
[x] On each of the single product components, if isEmployee is true, display the quantity in stock & a form with a numeric input and a update button
-- user should be able to put in a positive or negative integer
-- update button should call updateInventory to change the quantity in stock
-- quantity display on the page should update to reflect the amount added or removed
Developer Story
As a user who is an employee, I need to be able to adjust the inventory on our products
AC
WHEN an employee visits any of the product pages THEN an inventory adjustment form will display for each product AND submitting the form will update the quantity available in the database
Dev Notes
Updates
*
Which ticket in Notion does this relate to