dolibarr.stundenzettel/sql/update_1.2.0.sql
data 292db5d40c Version 2.0.0: PWA Mobile App + Produktliste-Verbesserungen
PWA (neue Dateien):
- Vollständige Progressive Web App mit Token-basierter Auth
- 4 Swipe-Panels: Alle STZ, Stundenzettel, Produktliste, Lieferauflistung
- Kundensuche, Leistungen-Accordion, Mehraufwand-Sektion
- Produkt-Übernahme aus Auftrag + Mehraufwand in STZ
- Service Worker, Manifest, App-Icons für Installation

Desktop-Änderungen:
- Produktliste: Checkboxen immer sichtbar (außer bereits auf STZ)
- Lieferauflistung: Vereinfachte Ansicht (nur Verbaut-Spalte)
- Admin: PWA-Link in Einstellungen
- Sprachdatei: PWA-Übersetzungen

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 21:21:14 +01:00

16 lines
861 B
SQL
Executable file

-- ============================================================================
-- 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';