How syedraihanm/tracksale works
This is a local-first mobile repair shop management system for staff handling intake through repair, billing, and delivery. Staff work through a FastAPI application with a browser interface; ticket workflows connect to payment, receipt, status, and inventory services, while search and import support separate operational tasks. The product also covers cash reconciliation, reporting, customer history, security, audit, and backups. The graph uses README descriptions and SOURCE INDEX references for relationships; unsampled implementations and runtime wiring are not inferred beyond those references.
Main entry points: tickets.py Ticket workflows · db.py SQLite database · ticket.py Ticket records · app.js Shop interface
Components 27
Repair workflow
- Ticket workflows
app/routers/tickets.py - Repair queue
app/routers/queue.py - Status lifecycle
app/services/status.py - Ticket services
app/services/tickets.py - Payment services
app/services/payments.py - Receipt services
app/services/receipts.py - Ticket line items
app/services/items.py
Shop operations
- Inventory management
app/routers/inventory.py - Inventory services
app/services/inventory.py - Global search
app/routers/search.py - Ticket search
app/services/search.py - Data import
app/routers/importer.py - Import processing
app/services/importer.py - Cash reconciliation
app/services/cash_close.py - Business reports
app/services/reports.py
Application platform
- Shop interface
app/static/app.js - Login and PIN
app/routers/auth.py - Session and secrets
app/security.py - Audit records
app/services/audit.py - Database backups
app/services/backup.py - Money and dates
app/formatting.py
Domain records
- SQLite database
app/db.py - Ticket records
app/models/ticket.py - Payment records
app/models/payment.py - Line item records
app/models/ticket_item.py - Domain states
app/models/enums.py
Other components
- Shop staff
Connections 27
- Shop staff → Shop interface: uses
- Shop interface → Ticket workflows: submits intake
- Ticket workflows → Ticket services: delegates
app/routers/tickets.py - Ticket workflows → Status lifecycle: changes status
app/routers/tickets.py - Ticket workflows → Payment services: records payments
app/routers/tickets.py - Ticket workflows → Receipt services: requests receipts
app/routers/tickets.py - Ticket workflows → Inventory services: uses inventory
app/routers/tickets.py - Repair queue → Payment services: records advances
app/routers/queue.py - Repair queue → Receipt services: previews receipts
app/routers/queue.py - Global search → Ticket search: searches tickets
app/routers/search.py - Data import → Import processing: processes imports
app/routers/importer.py - Inventory management → Inventory services: manages stock
- Ticket line items → Inventory services: adjusts stock
app/services/inventory.py - Ticket workflows → Ticket records: reads and writes
app/routers/tickets.py - Ticket records → Payment records: relates payments
app/models/ticket.py - Ticket records → Line item records: relates items
app/models/ticket.py - Ticket records → SQLite database: maps records
app/models/ticket.py - Payment records → SQLite database: maps records
app/models/payment.py - Line item records → SQLite database: maps records
app/models/ticket_item.py - Status lifecycle → Domain states: uses states
- Cash reconciliation → SQLite database: reconciles cash
- Business reports → SQLite database: reads metrics
app/services/reports.py - Login and PIN → Session and secrets: verifies credentials
app/routers/auth.py - Session and secrets → SQLite database: uses settings
- Ticket workflows → Audit records: audits changes
- Database backups → SQLite database: backs up data
- Shop interface → Money and dates: renders amounts