Gigafibre Field Service Management - ERPNext doctypes, dispatch app, architecture docs
- fix_issue_owners.py: 53K Issues linked to creator (owner) + 55K to assignee (_assign) - fix_issue_cust2.py: 47K Issues linked to Customer via legacy_account_id - fix_sub_address.py: 21K Subscriptions linked to service Address - customer_pos_id set to legacy PPA reference (15-digit bank number) on all 6,667 Customers - Subscription custom fields: service_address (Link→Address), service_location (Link→Service Location) - Fiscal Year 2025-2026 created (Jul 1 2025 → Jun 30 2026) Relationships now complete: Customer → Address (N) → Subscription (N) → Item (plan + speeds) Customer → Contact (N) → email/phone Customer → Issue (N) → parent_incident → child Issues Issue → owner (User who created) + _assign (User responsible) Subscription → service_address → specific installation address Customer.customer_pos_id = PPA bank reference number Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| apps | ||
| docs | ||
| erpnext | ||
| scripts/migration | ||
| .gitignore | ||
| README.md | ||
Gigafibre
Plateforme complète pour Gigafibre ISP (marque consommateur de TARGO).
Structure du monorepo
gigafibre-fsm/
apps/
dispatch/ Vue 3 / Quasar / Pinia — PWA de dispatch terrain
website/ React / Vite / Tailwind — www.gigafibre.ca
erpnext/
setup_fsm_doctypes.py Setup des doctypes FSM dans ERPNext
docs/
ARCHITECTURE.md Modèle de données, stack technique
INFRASTRUCTURE.md Serveur, DNS, auth, APIs, gotchas
ROADMAP.md Plan d'implémentation en 5 phases
COMPETITIVE-ANALYSIS.md Analyse concurrentielle
Apps
Dispatch PWA (apps/dispatch/)
Interface de répartition terrain : timeline drag-drop, carte Mapbox avec GPS temps réel (Traccar), gestion techniciens.
cd apps/dispatch
npm install
npx quasar dev # dev local
DEPLOY_BASE=/ npx quasar build -m pwa # build prod
Site web (apps/website/)
Site vitrine www.gigafibre.ca : qualification d'adresse (5.2M adresses QC), formulaire contact, capture leads.
cd apps/website
npm install
npm run dev # dev local
npm run build # build prod
ERPNext — Doctypes FSM
docker cp erpnext/setup_fsm_doctypes.py erpnext-backend-1:/home/frappe/frappe-bench/apps/frappe/frappe/
docker exec erpnext-backend-1 bench --site erp.gigafibre.ca execute frappe.setup_fsm_doctypes.create_all
Documentation
| Document | Contenu |
|---|---|
| ARCHITECTURE.md | Modèle de données, stack, auth flow |
| INFRASTRUCTURE.md | Serveur, DNS, Traefik, Authentik, Docker, gotchas |
| ROADMAP.md | 5 phases d'implémentation |
| COMPETITIVE-ANALYSIS.md | Gaiia, Odoo, Zuper, Salesforce, ServiceTitan |
Infrastructure
Voir INFRASTRUCTURE.md pour le schéma complet. En résumé :
- Serveur: 96.125.196.67 (Proxmox VM, Ubuntu 24.04)
- Proxy: Traefik v2.11 avec Let's Encrypt
- Auth: Authentik SSO (auth.targo.ca) via forwardAuth
- ERP: ERPNext v16 (erp.gigafibre.ca)
- GPS: Traccar (tracker.targointernet.com)
- Workflows: n8n (n8n.gigafibre.ca)
- DNS: Cloudflare (gigafibre.ca)
- Email: Mailjet (noreply@targo.ca)
- SMS: Twilio (+1 438 231-3838)