- buildTerminalPhaseMap: Schritt 1b - Leitungen mit expliziter Farbe als Startpunkte (nur Gerät→Gerät, keine Abgänge) - buildTerminalPhaseMap: Block-Durchreichung (Top↔Bottom) entfernt - buildTerminalPhaseMap: Junction-Verbindungen (Terminal→Leitung) bidirektional verarbeitet via _connectionById Index - PWA: Abgangs-Rendering mit Index-Fallback wenn source_terminal_id fehlt - PWA: Abgangs-Labels max-height 130px, min-height 30px - Auto-Naming: EquipmentCarrier create/update → 'R' + count - Auto-Naming: EquipmentPanel update → 'Feld ' + count - pwa_api.php: Hardcoded Fallbacks 'Feld'/'Hutschiene' entfernt - pwa.js: Hutschiene Auto-Naming dynamisch aus Panel-Carrier-Anzahl - kundenkarte.js: Carrier-Dialog Placeholder 'z.B. R1 (automatisch)' - SW Cache auf v12.5 hochgezählt Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
19 lines
1,023 B
SQL
Executable file
19 lines
1,023 B
SQL
Executable file
-- ============================================================================
|
|
-- Copyright (C) 2026 Alles Watt lauft
|
|
--
|
|
-- Links customers (societe) to installation systems
|
|
-- Defines which systems are present at a specific customer location
|
|
-- ============================================================================
|
|
|
|
CREATE TABLE llx_kundenkarte_societe_system (
|
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
|
entity integer DEFAULT 1 NOT NULL,
|
|
fk_soc integer NOT NULL, -- Customer (llx_societe)
|
|
fk_contact integer DEFAULT 0 NOT NULL, -- Contact/Address (0 = thirdparty-level)
|
|
fk_system integer NOT NULL, -- System category (llx_c_kundenkarte_anlage_system)
|
|
note text, -- Optional notes
|
|
date_creation datetime NOT NULL,
|
|
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
|
fk_user_creat integer,
|
|
active tinyint DEFAULT 1 NOT NULL
|
|
) ENGINE=innodb;
|