How only1ansary/summer-land-shop-inventory-system works
SummerLand is a shop inventory and sales-management backend, alongside Flutter platform runners. Its central workflow records a sale against a location and employee, allocates product-variant stock, records invoice items and payments, and updates employee sales figures. Other visible API areas cover catalog, purchasing, stock, returns, and reporting. The graph reflects sampled backend code and indexed references; client application code and several controller implementations were not provided, so their internal flows are not asserted.
Main entry points: ShopDbContext.cs Shop data context · SaleInvoicesController.cs Sales invoices · ReportsController.cs Reports · ProductVariantsController.cs Products and variants
Components 13
Shop API
- Sales invoices
SummerLandBackend/Controllers/SaleInvoicesController.cs - Products and variants
SummerLandBackend/Controllers/ProductVariantsController.cs - Purchasing
SummerLandBackend/Controllers - Stock operations
SummerLandBackend/Controllers - Returns
SummerLandBackend/Controllers/ReturnsController.cs - Reports
SummerLandBackend/Controllers/ReportsController.cs - Shop administration
SummerLandBackend/Controllers
Persistence Model
- Shop data context
SummerLandBackend/Data/ShopDbContext.cs - Shop domain entities
SummerLandBackend/Models
Domain Services
- Employee sales tracking
SummerLandBackend/Services/EmployeeSalesService.cs - Date range rules
SummerLandBackend/Services/QueryDateRange.cs - Barcode service
SummerLandBackend/Services/BarcodeService.cs
Other components
- Shop user
Connections 8
- Sales invoices → Shop data context: queries and saves
SummerLandBackend/Controllers/SaleInvoicesController.cs - Sales invoices → Employee sales tracking: records sale
SummerLandBackend/Controllers/SaleInvoicesController.cs - Products and variants → Shop data context: queries and saves
SummerLandBackend/Controllers/ProductVariantsController.cs - Purchasing → Shop data context: uses context
SummerLandBackend/Controllers/PurchaseInvoicesController.cs - Reports → Shop data context: queries
SummerLandBackend/Controllers/ReportsController.cs - Reports → Date range rules: normalizes dates
SummerLandBackend/Controllers/ReportsController.cs - Shop data context → Shop domain entities: maps entities
SummerLandBackend/Data/ShopDbContext.cs - Shop user → Sales invoices: uses API