Files
LarsandClaude Sonnet 5.5 221ce8ca81 Anfrage-Basisprozess inquiry.request mit Schablonen für Antwort und Gastkommunikation
Antwortart (Auskunft/Angebot) und Reservierung sind entkoppelt (neue Einstellung inquiry_answer;
pre_reservation bleibt die Reservierungsstrategie). Anlass-bezogene Absender für Anreise-Information
und Bewertungsbitte; Schablonen liefern Standardwerte unterhalb aller einstellbaren Ebenen.
A1/A2 bleiben Voreinstellungen und Altfassungen.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 12:40:22 +01:00

68 lines
2.0 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace App\Process\Templates;
/**
* A request is answered with a binding offer (contract draft, signed link) the guest accepts. The reservation strategy
* is not part of the template: it only suggests to reserve at the request (clarification hold, offer hold). Whoever
* prefers to offer without holding the dates at the request sets the reservation to "no" – the offer itself still
* holds the dates for its validity, and availability is checked before it goes out.
*/
final class OfferAnswer extends FunctionTemplate
{
public static function key(): string
{
return 'inquiry.binding_offer';
}
public static function version(): int
{
return 1;
}
public static function area(): TemplateArea
{
return TemplateArea::InquiryAnswer;
}
public static function label(): string
{
return 'Verbindliches Angebot';
}
public static function purpose(): string
{
return 'Der Gast erhält ein verbindliches Angebot mit Vertragsentwurf und nimmt es mit einem Klick an. Danach ist die Buchung verbindlich.';
}
public static function modules(): array
{
return [];
}
public static function requires(): array
{
return ['guest.identified', 'availability.checked'];
}
public static function fixes(): array
{
return ['inquiry_answer' => 'offer'];
}
public static function defaults(): array
{
return ['pre_reservation' => true];
}
public static function dimensions(): array
{
return [
'Verbindlichkeit' => 'Mit der Annahme des Gastes (Annahmeprotokoll).',
'Reservierung' => 'Vorschlag: Zeitraum schon bei der Anfrage reservieren; frei einstellbar. Das Angebot hält den Zeitraum in jedem Fall für seine Gültigkeit.',
'Ausführung' => 'Automatisch, nach Freigabe oder von Hand; Preisänderungen nur als Anpassungszeile.',
'Nachweis' => 'Angebotsversion, Annahme mit Zeitstempel und Prüfsumme.',
];
}
}