How taruntron/alter-erp-system works
This is a browser-based retail and wholesale business-management application. Users sign in, select a business view, and work through sales, purchasing, inventory, accounting, and reporting; the shared store context supplies application data and persists operational changes through Firebase. The graph preserves the major domain views and administration capabilities visible in the source index. Some view implementations were not excerpted, so their internal behavior and links beyond indexed imports are not asserted.
Main entry points: App.tsx Application router · StoreContext.tsx Shared business store · DashboardView.tsx Dashboard · PosView.tsx Point of sale
Components 28
Application shell
- Application router
src/App.tsx - Header controls
src/components/Header.tsx - Navigation sidebar
src/components/Navigation/Sidebar.tsx - Dashboard
src/components/Dashboard/DashboardView.tsx - Login views
src/components/Auth/LoginPanel.tsx
Sales and purchasing
- Point of sale
src/components/POS/PosView.tsx - Invoice printing
src/components/POS/InvoicePrintModal.tsx - Invoice history
src/components/Invoices/InvoiceListView.tsx - Sales returns
src/components/Sales/SalesReturnView.tsx - Quotations
src/components/Quotations/QuotationView.tsx - Purchase entry
src/components/Purchase/PurchaseView.tsx - Purchase orders
src/components/Purchase/PurchaseOrderView.tsx - Purchase returns
src/components/Purchase/PurchaseReturnView.tsx
Inventory and finance
- Item master
src/components/Inventory/ItemMasterView.tsx - Current stock
src/components/Inventory/CurrentStockView.tsx - Inventory masters
src/components/Masters/InventoryMastersView.tsx - Party master
src/components/Masters/PartyMasterView.tsx - Stock transfers
src/components/StockTransfer/StockTransferView.tsx - Accounting
src/components/Accounting/AccountingDashboard.tsx - Reports and analytics
src/components/Reports/ReportsAnalyticsView.tsx - Vouchers
src/components/Vouchers/VoucherView.tsx - Master control
src/components/Admin/MasterControlView.tsx
Shared platform
- Authentication state
src/context/AuthContext.tsx - Shared business store
src/context/StoreContext.tsx - Firebase client
src/lib/firebase.ts - Print settings
src/utils/printSettings.ts
Other components
- Business user
- Cloud Firestore
Connections 42
- Business user → Application router: uses
src/App.tsx - Application router → Authentication state: checks session
src/App.tsx - Application router → Header controls: renders
src/App.tsx - Application router → Navigation sidebar: renders
src/App.tsx - Application router → Dashboard: routes to
src/App.tsx - Application router → Point of sale: routes to
src/App.tsx - Application router → Invoice history: routes to
src/App.tsx - Application router → Purchase entry: routes to
src/App.tsx - Application router → Inventory masters: routes to
src/App.tsx - Application router → Accounting: routes to
src/App.tsx - Application router → Sales returns: routes to
src/App.tsx - Application router → Quotations: routes to
src/App.tsx - Application router → Purchase orders: routes to
src/App.tsx - Application router → Purchase returns: routes to
src/App.tsx - Application router → Current stock: routes to
src/App.tsx - Application router → Stock transfers: routes to
src/App.tsx - Application router → Reports and analytics: routes to
src/App.tsx - Application router → Vouchers: routes to
src/App.tsx - Application router → Master control: routes to
src/App.tsx - Application router → Login views: renders
src/App.tsx - Point of sale → Invoice printing: uses
src/components/POS/PosView.tsx - Invoice history → Invoice printing: uses
src/components/Invoices/InvoiceListView.tsx - Quotations → Print settings: reads settings
src/components/Quotations/QuotationView.tsx - Purchase entry → Shared business store: uses data
src/components/Purchase/PurchaseView.tsx - Point of sale → Shared business store: uses data
src/components/POS/PosView.tsx - Invoice history → Shared business store: uses data
src/components/Invoices/InvoiceListView.tsx - Sales returns → Shared business store: uses data
src/components/Sales/SalesReturnView.tsx - Purchase orders → Shared business store: uses data
src/components/Purchase/PurchaseOrderView.tsx - Purchase returns → Shared business store: uses data
src/components/Purchase/PurchaseReturnView.tsx - Item master → Shared business store: uses data
src/components/Inventory/ItemMasterView.tsx - Inventory masters → Shared business store: uses data
src/components/Masters/InventoryMastersView.tsx - Party master → Shared business store: uses data
src/components/Masters/PartyMasterView.tsx - Stock transfers → Shared business store: uses data
src/components/StockTransfer/StockTransferView.tsx - Accounting → Shared business store: uses data
src/components/Accounting/AccountingDashboard.tsx - Reports and analytics → Shared business store: uses data
- Vouchers → Shared business store: uses data
src/components/Vouchers/VoucherView.tsx - Master control → Shared business store: uses data
src/components/Admin/MasterControlView.tsx - Shared business store → Firebase client: uses client
src/context/StoreContext.tsx - Authentication state → Firebase client: uses client
src/context/AuthContext.tsx - Firebase client → Cloud Firestore: connects to
src/lib/firebase.ts - Dashboard → Shared business store: uses data
src/components/Dashboard/DashboardView.tsx - Dashboard → Navigation sidebar: navigates via
src/components/Dashboard/DashboardView.tsx