dolibarr.stundenzettel/sql/update_1.2.0.sql
data 15fec1e8df Fix: CSS-Einbindung mit file_exists() absichern
- filemtime() warf Fehler wenn CSS-Datei nicht existiert
- Alle Update 1.2.0 Felder werden jetzt bei Aktivierung geprüft/angelegt
- SQL-Update-Skript erweitert

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-08 18:45:37 +01:00

16 lines
861 B
SQL

-- ============================================================================
-- Stundenzettel Update auf Version 1.2.0
-- Fügt Leistungsposition zu Arbeitszeiten und Stundenpreis-Felder hinzu
-- ============================================================================
-- 1. Leistungsposition (Dienstleistung) pro Arbeitszeit
ALTER TABLE llx_stundenzettel_leistung
ADD COLUMN IF NOT EXISTS fk_product INTEGER DEFAULT NULL COMMENT 'Verknüpfung zur Leistungsposition (Dienstleistung)';
-- 2. Stundenpreis in Haupttabelle
ALTER TABLE llx_stundenzettel
ADD COLUMN IF NOT EXISTS hourly_rate DOUBLE(24,8) DEFAULT NULL COMMENT 'Stundenpreis (NULL = Standard verwenden)';
-- 3. Flag ob Stundenpreis manuell gesetzt wurde
ALTER TABLE llx_stundenzettel
ADD COLUMN IF NOT EXISTS hourly_rate_is_custom TINYINT DEFAULT 0 NOT NULL COMMENT '1 = manuell geändert';