gigafibre-fsm/scripts/migration
louispaulb 22377bb381 feat: fix all data relationships + PPA reference numbers
- 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>
2026-03-28 15:45:51 -04:00
..
fix_issue_cust2.py feat: fix all data relationships + PPA reference numbers 2026-03-28 15:45:51 -04:00
fix_issue_owners.py feat: fix all data relationships + PPA reference numbers 2026-03-28 15:45:51 -04:00
fix_sub_address.py feat: fix all data relationships + PPA reference numbers 2026-03-28 15:45:51 -04:00
import_items.py feat: migration legacy → ERPNext phases 1-4 complete 2026-03-28 14:35:02 -04:00
migrate_direct.py feat: migration legacy → ERPNext phases 1-4 complete 2026-03-28 14:35:02 -04:00
migrate_phase3.py feat: migration legacy → ERPNext phases 1-4 complete 2026-03-28 14:35:02 -04:00
migrate_phase5.py feat: Phase 5 opening balance + AR analysis 2026-03-28 14:47:18 -04:00
migrate_tickets.py feat: Phase 6 — 242K tickets migrated as Issues with parent/child 2026-03-28 15:06:58 -04:00
migrate_users.py feat: Phase 7 — 45 ERPNext Users from legacy staff 2026-03-28 15:13:31 -04:00