How subhash8729/billing-system works
This is a multi-tenant point-of-sale platform: store owners onboard and configure stores, while platform administrators approve stores and manage plans; branch staff manage stock, sales, returns, and shift reporting. The React application selects role-specific pages, and the Spring backend provides the corresponding business services and persistence. README-level workflow and capability links are cited; most backend and Redux internals were not excerpted, so their detailed call relationships are not asserted.
Main entry points: App.jsx Role-based app · StoreRoutes.jsx Store console · CashierRoutes.jsx Cashier POS · SuperAdminRoutes.jsx Admin console
Components 21
User applications
- Role-based app
pos-frontend-vite/src/App.jsx - Admin console
pos-frontend-vite/src/routes/SuperAdminRoutes.jsx - Store console
pos-frontend-vite/src/routes/StoreRoutes.jsx - Branch console
pos-frontend-vite/src/routes/BranchManagerRoutes.jsx - Cashier POS
pos-frontend-vite/src/routes/CashierRoutes.jsx
Identity and tenancy
- Authentication API
pos-backend/src/main/java/com/zosh/controller/AuthController.java - Authentication service
pos-backend/src/main/java/com/zosh/service/impl/AuthServiceImpl.java - User management
pos-backend/src/main/java/com/zosh/service/UserService.java
Store operations
- Store and branches
pos-backend/src/main/java/com/zosh/service/impl/StoreServiceImpl.java - Catalog and inventory
pos-backend/src/main/java/com/zosh/service/impl/InventoryServiceImpl.java - Orders and payments
pos-backend/src/main/java/com/zosh/service/impl/OrderServiceImpl.java - Refunds
pos-backend/src/main/java/com/zosh/service/impl/RefundServiceImpl.java - Shift reporting
pos-backend/src/main/java/com/zosh/service/ShiftReportService.java - Analytics
pos-backend/src/main/java/com/zosh/service/impl/StoreAnalyticsServiceImpl.java
Platform services
- Subscriptions and plans
pos-backend/src/main/java/com/zosh/service/SubscriptionService.java - Payment gateways
pos-backend/src/main/java/com/zosh/service/gateway/RazorpayService.java
Backend persistence
- Application database
pos-backend/src/main/java/com/zosh/repository/StoreRepository.java
Other components
- Platform admin
- Store owner
- Branch staff
- Customer
Connections 24
- Platform admin → Role-based app: uses platform
README.md - Store owner → Role-based app: configures store
README.md - Branch staff → Role-based app: runs branch
README.md - Customer → Role-based app: receives receipt
README.md - Role-based app → Admin console: routes by role
pos-frontend-vite/src/App.jsx - Role-based app → Store console: routes by role
pos-frontend-vite/src/App.jsx - Role-based app → Branch console: routes by role
pos-frontend-vite/src/App.jsx - Role-based app → Cashier POS: routes by role
pos-frontend-vite/src/App.jsx - Admin console → Subscriptions and plans: manages plans
README.md - Admin console → Store and branches: approves stores
README.md - Store console → Store and branches: configures branches
README.md - Store console → Catalog and inventory: manages products
README.md - Store console → Subscriptions and plans: selects plan
README.md - Branch console → Catalog and inventory: manages stock
README.md - Branch console → Analytics: views reports
README.md - Cashier POS → Orders and payments: records sales
README.md - Cashier POS → Refunds: records returns
README.md - Cashier POS → Shift reporting: ends shift
README.md - Authentication API → Authentication service: delegates auth
- Authentication service → User management: loads user
pos-backend/src/main/java/com/zosh/service/impl/AuthServiceImpl.java - Subscriptions and plans → Payment gateways: initiates payment
- Store and branches → Application database: persists stores
- Catalog and inventory → Application database: persists stock
- Orders and payments → Application database: persists orders