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>
This commit is contained in:
LarsandClaude Sonnet 5.5 committed 2026-11-05 12:40:22 +01:00
1 parent e40f8639b3
commit 221ce8ca81
51 files changed
+773 -73

No files matched your search

+25
View File
@@ -12,12 +12,16 @@ enum TemplateArea: string
{
case Collection = 'collection';
case ContractDocuments = 'contract_documents';
case InquiryAnswer = 'inquiry_answer';
case GuestCommunication = 'guest_communication';
public function label(): string
{
return match ($this) {
self::Collection => 'Finanzabwicklung (Inkasso)',
self::ContractDocuments => 'Vertragsdokumentation',
self::InquiryAnswer => 'Beantwortung der Anfrage',
self::GuestCommunication => 'Gastkommunikation',
};
}
@@ -26,6 +30,8 @@ public function question(): string
return match ($this) {
self::Collection => 'Wer zieht das Geld des Gastes ein?',
self::ContractDocuments => 'Wer stellt dem Gast die Vertragsunterlagen bereit?',
self::InquiryAnswer => 'Womit antworten wir zuerst auf eine Anfrage?',
self::GuestCommunication => 'Wer schreibt dem Gast zu welchem Anlass? (Standard – jeder Anlass bleibt einzeln einstellbar)',
};
}
@@ -35,6 +41,8 @@ public function result(): string
return match ($this) {
self::Collection => 'money.collection_handled',
self::ContractDocuments => 'contract.documented',
self::InquiryAnswer => 'inquiry.answered',
self::GuestCommunication => 'guest.communication_assigned',
};
}
@@ -44,6 +52,23 @@ public function setting(): ProcessSetting
return match ($this) {
self::Collection => ProcessSetting::Payments,
self::ContractDocuments => ProcessSetting::Documents,
self::InquiryAnswer => ProcessSetting::InquiryAnswer,
self::GuestCommunication => ProcessSetting::GuestMessages,
};
}
/**
* Every setting a template of this area may fix or suggest – nothing else (no hidden coupling to other areas).
*
* @return list<ProcessSetting>
*/
public function settings(): array
{
return match ($this) {
self::Collection, self::ContractDocuments => [$this->setting()],
// An information reserves nothing by definition; for an offer the reservation is only suggested.
self::InquiryAnswer => [ProcessSetting::InquiryAnswer, ProcessSetting::PreReservation],
self::GuestCommunication => [ProcessSetting::GuestMessages, ProcessSetting::ArrivalInfoSender, ProcessSetting::ReviewRequestSender],
};
}
}