feat: populate company/place/customer_name from MSFS extraction DB

- New script: scripts/populate_asset_company_place.py maps connect_id →
  account name (company/customer_name) + city (place) + address via
  extraction DB (msdyn_customerasset + account join)
- 5,743/7,488 assets now have company + customer_name populated
- 5,647/7,488 assets now have place (city) populated
- Fix: SELECT COALESCE(c.name, a.customer_name) so stored customer_name
  isn't overridden to NULL when customer_id FK is missing
- Bump SW v4→v5, version v3.1→v3.2 to force cache refresh
This commit is contained in:
2026-05-29 07:45:01 -04:00
parent 5180d811a8
commit 4f9c0d0b75
4 changed files with 326 additions and 8 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
// Caches app shell + CDN deps. Network-first for API, cache fallback for static.
// ═══════════════════════════════════════════════════════════════════════════
const CACHE_NAME = 'canteen-v3';
const CACHE_NAME = 'canteen-v5';
// App shell — core resources needed to boot the PWA
const APP_SHELL = [