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:
@@ -105,6 +105,15 @@ export async function POST(request: NextRequest) {
|
||||
},
|
||||
});
|
||||
|
||||
if (Array.isArray(body.equipmentIds) && body.equipmentIds.length > 0) {
|
||||
await prisma.bookingEquipment.createMany({
|
||||
data: body.equipmentIds.map((eqId: string) => ({
|
||||
bookingId: booking.id,
|
||||
equipmentId: eqId,
|
||||
})),
|
||||
});
|
||||
}
|
||||
|
||||
try {
|
||||
await nextcloudCalendar.syncBookingToCalendar(booking);
|
||||
} catch (calError) {
|
||||
|
||||
Reference in New Issue
Block a user