Pakete 7 und 9: Auskunft und Buchungswunsch, Aufenthalt und Abschluss (Zwischenstand)
- Haltefrist 0: unverbindliche Auskunft mit signiertem Link "Buchung anfragen", erneute Prüfung unter Sperre, automatische oder manuelle Bestätigung, Absage bei vergebenem Zeitraum, Ablauf unbeantworteter Auskünfte - Aufenthalt: Anreisedaten, Aufgaben je Wohnung, gebuchte Leistungen, Abweichungen und Folgeaufgaben als Aufgaben am Vorgang - Abschluss getrennt: Aufenthalt abgeschlossen / kaufmännisch abgeschlossen, Nachläufer (Forderung, Auszahlung) bleiben sichtbar - Zahlungsstatus nur aus Geld auf unserem Konto; Altbestand per Vorschau-Befehl - Verlauf weist Testzustellungen als solche aus - Abnahmetests T16-T25, T23 über isolierten SMTP-Empfänger Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3bcfc09417
commit
40d20cb7d1
52 files changed
+3196
-89
No files matched your search
@@ -31,6 +31,7 @@
|
||||
use App\Filament\Forms\Components\EuroInput;
|
||||
use App\Filament\Forms\DocumentCompositionFields;
|
||||
use App\Filament\Resources\Bookings\BookingResource;
|
||||
use App\Filament\Resources\Bookings\Pages\Concerns\HandlesWishAndStay;
|
||||
use App\Models\Booking;
|
||||
use App\Models\BookingChange;
|
||||
use App\Models\BookingTask;
|
||||
@@ -79,6 +80,8 @@
|
||||
*/
|
||||
class ViewBooking extends ViewRecord
|
||||
{
|
||||
use HandlesWishAndStay;
|
||||
|
||||
protected static string $resource = BookingResource::class;
|
||||
|
||||
/** Actions for the expert view only. */
|
||||
@@ -97,8 +100,15 @@ public function getSubheading(): string|Htmlable|null
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
$actions = collect([
|
||||
$this->sendInformationAction(),
|
||||
$this->decideWishAction(),
|
||||
$this->sendOfferAction(),
|
||||
$this->provideContactAction(),
|
||||
$this->arrivalDetailsAction(),
|
||||
$this->completeTaskAction(),
|
||||
$this->addTaskAction(),
|
||||
$this->closeStayAction(),
|
||||
$this->settleAction(),
|
||||
$this->requestContactAction(),
|
||||
AssignGuestAction::make(),
|
||||
$this->confirmAction(),
|
||||
@@ -143,7 +153,11 @@ private function isExpert(): bool
|
||||
private function sendOfferAction(): Action
|
||||
{
|
||||
return Action::make('sendOffer')
|
||||
->label(fn (): string => $this->record->status === BookingStatus::OfferSent ? 'Angebot ändern & neu senden' : 'Angebot prüfen und senden')
|
||||
->label(fn (): string => match (true) {
|
||||
$this->record->status === BookingStatus::OfferSent => 'Angebot ändern & neu senden',
|
||||
! $this->record->process()->preReservation() => 'Stattdessen verbindliches Angebot mit Reservierung senden',
|
||||
default => 'Angebot prüfen und senden',
|
||||
})
|
||||
->icon(Heroicon::OutlinedPaperAirplane)
|
||||
->visible(fn (): bool => in_array($this->record->status, [BookingStatus::Reserved, BookingStatus::OfferSent, BookingStatus::Expired], true) && $this->record->intake !== IntakeKind::Booking)
|
||||
->modalHeading('Angebot an den Gast')
|
||||
|
||||
Reference in new issue
Block a user