A comprehensive Point of Sale system built with ASP.NET Core (.NET 9) featuring role-based access control, complete CRUD operations, advanced inventory management, and comprehensive seed data.
- Role-based access control with two roles:
- Admin: Full access to all features including reports and product management
- Cashier: Limited access to POS and personal sales history
- Secure login/logout functionality
- Access denied handling for unauthorized access
- Seeded demo accounts:
- Admin:
admin
/Admin123!
- Cashier 1:
cashier
/Cashier123!
- Cashier 2:
cashier2
/Cashier123!
- Admin:
- Enhanced CRUD operations with validation
- Comprehensive product fields: Description, Category, Barcode, Supplier, Cost Price
- Stock tracking with visual indicators and low stock alerts
- Product search and filtering by name, category, barcode
- Bulk stock updates for efficient inventory management
- Profit margin calculations and analysis
- Product lifecycle management (active/inactive status)
- 22+ sample products with realistic data across 7 categories
- Barcode scanning support for quick product addition
- Real-time product search and filtering
- Category-based product organization
- Interactive shopping cart with quantity controls
- Stock validation to prevent overselling
- Real-time total calculation with tax support
- Low stock alerts during checkout
- Receipt generation and printing
- Enhanced sales history with pagination and filtering
- Date range filtering for historical analysis
- Cashier-specific filtering (Admin only)
- Detailed sale receipts with print functionality
- Sale voiding capability (Admin only, same-day only)
- Stock restoration on sale voids
- 55+ sample sales with realistic patterns
- Advanced sales analytics with key performance indicators
- Customizable date range reporting
- Top products analysis by quantity and revenue
- Cashier performance tracking
- Hourly sales distribution
- Profit margin analysis
- Daily/monthly revenue tracking
- Export capabilities (CSV ready)
- Database management tools with statistics
- Low stock monitoring and alerts
- Profit analysis with margin calculations
- Inventory health indicators
- Data reseeding functionality for development
- System health monitoring
Beverages - Hot:
- Espresso Coffee ($2.50) - Premium Arabica beans
- Green Tea ($2.00) - Organic with antioxidants
- Hot Chocolate ($3.25) - Creamy with marshmallows
Beverages - Cold:
- Cola Soda ($1.99) - Classic refreshing cola
- Spring Water ($1.25) - Pure natural 500ml bottle
- Energy Drink ($3.25) - High-caffeine boost
- Orange Juice ($2.99) - Fresh squeezed 100% natural
Food - Main Meals:
- Club Sandwich ($5.99) - Triple-layer with turkey and bacon
- Beef Burger ($8.99) - Juicy with cheese and special sauce
- Margherita Pizza Slice ($3.50) - Fresh with mozzarella and basil
- Caesar Salad ($6.50) - Fresh romaine with Caesar dressing
- Hot Dog ($4.50) - Grilled with mustard and ketchup
Snacks:
- Potato Chips ($1.50) - Crispy salted family size
- Chocolate Bar ($1.25) - Premium milk chocolate with almonds
- Tortilla Nachos ($4.25) - Crispy with cheese dip
- Mixed Nuts ($3.75) - Premium cashews, almonds, peanuts
Bakery:
- Blueberry Muffin ($2.75) - Fresh baked with real berries
- Glazed Donut ($1.75) - Classic soft and sweet
- Everything Bagel ($2.00) - Fresh with everything seasoning
- Butter Croissant ($3.25) - Flaky French pastry
Dairy & Desserts:
- Greek Yogurt ($2.25) - Creamy with honey and granola
- Vanilla Ice Cream ($3.99) - Premium ice cream cup
- Complete product information: Description, category, barcode, supplier
- Cost price tracking for profit calculations
- Minimum stock levels with automated alerts
- Creation and modification timestamps
- Active/inactive status for lifecycle management
- Realistic profit margins ranging from 15% to 65%
- Historical sales spanning 30 days with realistic patterns
- Multiple cashiers with different transaction styles
- Varied transaction sizes (1-5 items per sale)
- Peak hour distributions (lunch, evening rushes)
- Weekend vs weekday patterns
- Today's active sales for current reporting
- ASP.NET Core MVC with Razor Pages optimization
- Entity Framework Core with advanced configurations
- ASP.NET Core Identity for secure authentication
- SQL Server with optimized indexing
- Bootstrap 5 with custom POS styling
- Barcode scanning integration ready
- Real-time stock validation
- Comprehensive search and filtering
- Pagination for large datasets
- Print-friendly receipts
- Advanced reporting with multiple metrics
- Role-based UI adaptation
- Product: Enhanced with barcode, supplier, cost tracking, categories
- Sale: Optimized with proper indexing
- SaleItem: Quantity validation and stock integration
- Unique constraints on barcodes
- Cascade delete handling
- Performance indexes on frequently queried fields
- Enhanced authorization with granular permissions
- Input validation and sanitization
- Anti-forgery tokens on all forms
- Secure barcode handling
- Role-based data access
- Revenue tracking with profit margins
- Peak performance analysis
- Cashier productivity metrics
- Product performance ranking
- Inventory turnover rates
- Low stock predictions
- Profit optimization suggestions
- Category performance analysis
- Supplier tracking
- Stock movement patterns
- Run the application
- Database will be automatically seeded with comprehensive data
- Use demo accounts to explore role-specific capabilities
- Admin Access:
admin
/Admin123!
- Complete system access including advanced reports and analytics
- Cashier Access:
cashier
/Cashier123!
- POS interface and personal sales history
- Advanced Sales: Login ? POS ? Scan/Search Products ? Build Cart ? Process ? Print Receipt
- Inventory Management: Admin ? Products ? Search/Filter ? Bulk Updates ? Low Stock Reports
- Advanced Reporting: Admin ? Reports ? Date Range ? Analyze Performance ? Export Data
- Profit Analysis: Admin ? Products ? Profit Analysis ? Optimize Margins
- Barcode scanner integration
- Touch-friendly interface
- Real-time inventory checking
- Multiple payment methods support ready
- Receipt printing capability
- Smart reordering suggestions
- Supplier integration ready
- Category management
- Profit optimization tools
- Stock movement tracking
- Performance dashboards
- Trend analysis
- Profitability insights
- Operational metrics
- Export capabilities
This enhanced implementation provides a production-ready POS system with enterprise-level features suitable for small to medium businesses, demonstrating modern web development practices and comprehensive business logic.