Commit graph

10 commits

Author SHA1 Message Date
Claude
b9d8e7094b
Add comprehensive error handling to Python and JavaScript files
This commit enhances error handling across the codebase with clear, user-friendly error messages:

Python Files:
- main.py: Added error handling for directory creation and file operations
- read_excel.py: Added error handling for file loading, JSON parsing, and data output
- fill_plan_dates.py: Added input validation and error handling for file operations and date calculations
- calculate.py: Improved error handling in load_holidays() and process_file() with detailed warnings for invalid data
- build_template.py: Added error handling for directory creation, workbook creation, and file saving

JavaScript Files:
- storage.js: Added comprehensive error handling for:
  - JSON parsing in getEmployees() and getAllDuties()
  - Type validation in save operations
  - Date conversion in getDutiesForMonth()
  - Data validation in saveDutiesForMonth()
  - Export/import operations

Benefits:
- Clear error messages in German for better user experience
- Graceful degradation when data is corrupted
- Type checking to prevent invalid data from being stored
- Row-level error reporting for Excel processing
- Invalid data filtering to prevent application crashes
2025-12-13 13:31:18 +00:00
copilot-swe-agent[bot]
b1d0827fc9 Add Silvester (Dec 31) as holiday for NRW 2025 and 2026
This also makes December 30 a Vortag (pre-holiday day).

Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-12-12 20:00:39 +00:00
copilot-swe-agent[bot]
1ee73105dd Add Heiligabend (Dec 24) as holiday for NRW 2025 and 2026
This fixes the issue where:
- December 24 was not recognized as a special day
- December 23 was not marked as Vortag (pre-holiday day)

By adding Heiligabend to the holiday list:
- Dec 24 is now Ist_FEIERTAG=TRUE (treated as WE-Tag)
- Dec 23 is now Ist_VORTAG=TRUE (day before holiday, also WE-Tag)

Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-12-12 19:41:15 +00:00
copilot-swe-agent[bot]
db6e95f45c Revert deduction value to 2.0 across all files as per user feedback
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-12-12 12:26:34 +00:00
copilot-swe-agent[bot]
a2cc8340ee Fix deduction value from 2.0 to 1.0 across all files for consistency
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-12-12 12:04:38 +00:00
copilot-swe-agent[bot]
d6372fe2e2 Change weekend deduction from 1.0 to 2.0 units
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-12-12 11:36:24 +00:00
Claude
736d160586
Korrektur: Bonus nur bei WE-Schwelle ≥ 2,0
- Gesamter Bonus (WT + WE) wird nur gezahlt, wenn >= 2,0 WE-Tage erreicht
- Unter Schwelle: Auszahlung = 0€ (weder WT noch WE)
- Abzug mit Freitag-Priorität implementiert
- Testfälle und Dokumentation aktualisiert

Betrifft:
- webapp/calculator.js: Korrekte Berechnung mit Freitag-Priorität
- src/calculate.py: WT-Auszahlung nur bei Schwelle
- SPECIFICATION.md: Regeln, Testfälle und Changelog aktualisiert
2025-11-18 22:02:48 +00:00
Kenearos
034b398c2c Vereinfachte Dienstplan-Version: Nur Datum & Mitarbeiter, Python-Berechnungen
- Neue vereinfachte Vorlage ohne komplexe Excel-Formeln
- Automatische Anteil-Berechnung (1 MA = 1.0, 2 MA = je 0.5)
- Python-basierte Vergütungsberechnung nach NRW-Regeln
- Datumsformat als Text für bessere Kompatibilität
- Testdaten-Generator mit Splits
2025-11-18 21:46:07 +00:00
copilot-swe-agent[bot]
73b214a094 Fix Excel formula syntax error in Checks sheet
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-11-14 14:11:14 +00:00
Kenearos
99480bb7ff Initial commit: NRW Dienstplan Generator (Variante 2) 2025-11-14 14:43:34 +01:00