feat: add sales rep system with territories, commissions, and dashboard #3
Reference in New Issue
Block a user
Delete Branch "feat/sales-rep-system"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Sprint 1 implementation of the Sales Person Features:
Models & Migrations:
Controllers & Views:
Services:
Routes & Navigation:
Sprint 1 implementation of the Sales Person Features: Models & Migrations: - SalesRepAssignment: Polymorphic assignment of reps to accounts/stores - SalesTerritory, SalesTerritoryArea, SalesTerritoryAssignment: Territory management - SalesCommissionRate, SalesCommission: Commission tracking with rate hierarchy - AccountNote: Sales rep notes on buyer accounts (competitor intel, pain points) - CompetitorReplacement: Maps CannaiQ competitor products to our replacements - ProspectInsight, ProspectImport: Prospect gap analysis and CSV import tracking Controllers & Views: - Sales Dashboard: My accounts overview with health status metrics - Accounts Index: Filterable list with at-risk/needs-attention badges - Account Show: Full account detail with order history, contacts, notes Services: - ReorderPredictionService: Predicts reorder windows based on order patterns Routes & Navigation: - Added /s/{business}/sales/* routes under sales suite middleware - Added sales_rep_dashboard and sales_rep_accounts to sidebar menu