- 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>
36 lines
1.4 KiB
SQL
Executable file
36 lines
1.4 KiB
SQL
Executable file
-- ============================================================================
|
|
-- Copyright (C) 2026 Alles Watt lauft
|
|
--
|
|
-- Table for equipment instances (Sicherungsautomaten, FI-Schalter, etc.)
|
|
-- Equipment is placed on a carrier (Hutschiene) at a specific position
|
|
-- ============================================================================
|
|
|
|
CREATE TABLE llx_kundenkarte_equipment
|
|
(
|
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
|
entity integer DEFAULT 1 NOT NULL,
|
|
|
|
fk_carrier integer NOT NULL COMMENT 'Traeger/Hutschiene',
|
|
fk_equipment_type integer NOT NULL COMMENT 'Equipment-Typ',
|
|
|
|
label varchar(255) COMMENT 'Optionale Beschriftung/Stromkreis',
|
|
|
|
-- Positionierung auf dem Traeger
|
|
position_te integer NOT NULL COMMENT 'Startposition in TE (0-basiert)',
|
|
width_te integer NOT NULL COMMENT 'Breite in TE (vom Typ oder ueberschrieben)',
|
|
|
|
-- Flexible Felder (JSON)
|
|
field_values text,
|
|
|
|
-- Optionale Produkt-Verknuepfung (ueberschreibt Typ-Produkt)
|
|
fk_product integer DEFAULT NULL COMMENT 'Spezifisches Dolibarr-Produkt',
|
|
|
|
note_private text,
|
|
status tinyint DEFAULT 1 NOT NULL,
|
|
|
|
date_creation datetime,
|
|
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
|
fk_user_creat integer,
|
|
fk_user_modif integer,
|
|
import_key varchar(14)
|
|
) ENGINE=innodb;
|