CUSTOMER PORTAL
The customer portal on Bamazon has two functions:
- View all available products
- Buy a product selected by ID.
After selecting an item from the list, the user is displyed the item they selected and prompted for a quantity to purchase.
Once the user has selected their item and the quantity they would like to purchase, the database is checked for product availibility. If the user has selected a quantity larger than what is in the DB, they will be notified to choose another option.
However, if the user quantity is less than what is in the DB, they will be notified that their item has been shipped and the DB quantity is updated.
MANAGER PORTAL
The mangager portal currently has four working functions:
- view-inven
- low-inven
- add-inven
- help
The view-inven function will display all current products in the database
The low-inven function displays all inventory items with a stock count below 5
The add-inven function allows the mangager to add inventory to the item of his choice, selected again by item ID in the DB
The help function displays all available commands to the user and re-runs the program