A simple inventory and sales management system with core features like adding products, updating stock, processing sales, generating reports, and undoing transactions.
- Add new products with ID, Name, Price, and Quantity
- Update existing product details (price and quantity)
- Delete products from the inventory array
- Process sales by reducing quantity
- Maintain a sales log with product ID, quantity sold, and date/time
- Search products by ID or Name
- Sort products by Price or Quantity using Bubble Sort
- Sales Report: total sales, best-selling products, sales count
- Inventory Report: all products with current stock and prices
- Low Stock Alert: automatic alerts when stock is below threshold
- Identify low-stock products for restocking
- Add new stock to replenish inventory
- Undo the last sale transaction
- Confirmation prompt before undo
- Support for multiple undos with limits
- Automatically updates reports and alerts
- Add Product β Enter ID, Name, Price, Quantity
- Sell Product β Quantity decreases, sale logged
- View Reports β Check total sales and stock levels
- Undo Sale β Restore previous stock & update logs