feat: Equipment-System, Buchungsbearbeitung, Kundenadresse, LexOffice-Fix

- Vintage Modell hinzugefuegt
- Equipment Multi-Select (Neue Buchung + Bearbeitung)
- Kundenadresse in Formularen
- Bearbeiten-Seite fuer Buchungen
- Abbau-Zeiten in Formularen und Uebersicht
- Vertrag PDF nur bei Privatkunden
- LexOffice Kontakt-Erstellung Fix (BUSINESS)
- Zurueck-Pfeil auf Touren-Seite
This commit is contained in:
Julia Wehden
2026-03-19 16:21:55 +01:00
parent 0b6e429329
commit a2c95c70e7
79 changed files with 7396 additions and 538 deletions

View File

@@ -2,6 +2,7 @@ import Imap from 'imap';
import { simpleParser } from 'mailparser';
import { prisma } from './prisma';
import { emailParser } from './email-parser';
import { bookingAutomationService } from './booking-automation';
export interface ImapConfig {
host: string;
@@ -335,6 +336,12 @@ export class EmailSyncService {
},
});
// 🤖 Automatische Post-Booking Aktionen
console.log('📢 Starte automatische Aktionen...');
bookingAutomationService.runPostBookingActions(booking.id).catch(err => {
console.error('⚠️ Automatische Aktionen fehlgeschlagen:', err);
});
return booking;
} catch (error) {
console.error('Failed to create booking from parsed data:', error);