How jjasmine202/minimart-inventory works
MiniMart-Inventory is a Java console application for staff inventory management and customer checkout. Staff use the console to maintain products, adjust stock, and view low-stock, inventory, and transaction reports. Customers browse or search products, build a cart, confirm a purchase, optionally receive a loyalty discount, and get a printed and saved receipt. Inventory and transaction history are held in application memory. The excerpts show the main calls; some checkout-to-inventory sale handling is not visible, so that link is marked unverified.
Main entry points: Inventory.java Inventory and reports · InventoryApp.java Console application · Product.java Product base · Cart.java Customer cart
Components 11
Console workflow
- Console application
src/InventoryApp.java
Inventory operations
- Inventory and reports
src/Inventory.java - Stock transaction
src/StockTransaction.java
Product model
- Product base
src/Product.java - Food item
src/FoodItem.java - Beverage item
src/BeverageItem.java - Toiletry item
src/ToiletryItem.java
Checkout
- Customer cart
src/Cart.java - Loyalty discount
src/LoyaltyProgram.java - Receipt output
src/ReceiptWriter.java
Other components
- Staff or customer
Connections 16
- Staff or customer → Console application: uses
README.md - Console application → Inventory and reports: manages inventory
src/InventoryApp.java - Console application → Customer cart: builds cart
src/InventoryApp.java - Console application → Loyalty discount: checks discount
src/InventoryApp.java - Console application → Receipt output: creates receipt
src/InventoryApp.java - Inventory and reports → Stock transaction: records changes
src/Inventory.java - Inventory and reports → Product base: manages products
src/Inventory.java - Inventory and reports → Food item: loads samples
src/Inventory.java - Inventory and reports → Beverage item: loads samples
src/Inventory.java - Inventory and reports → Toiletry item: loads samples
src/Inventory.java - Food item → Product base: extends
src/FoodItem.java - Beverage item → Product base: extends
src/BeverageItem.java - Toiletry item → Product base: extends
src/ToiletryItem.java - Customer cart → Product base: prices items
src/Cart.java - Receipt output → Customer cart: formats lines
src/ReceiptWriter.java - Console application → Inventory and reports: records sale
src/InventoryApp.java