Zahlungsaufgaben, Freigabe-/Storno-Link, Vertragsvorlagen, Anreise-Mail
Deploy FeWo mit PipelineManager / deploy (push) Successful in 3m36s
Deploy FeWo mit PipelineManager / deploy (push) Successful in 3m36s
- Zahlungen werden nicht mehr automatisch angemahnt: faellige Anzahlung/Restzahlung werden Aufgaben (Zahlungen & Wuensche, Tages-/Wochenuebersicht); Mail nur per Klick; je Portal und Buchungstyp abschaltbar - Freigabe-Link in der Eingangsbestaetigung, Storno-Link in der Buchungsbestaetigung; je Wohnung Wunsch / sofort / sofort bis Frist; Stornowuensche und Kosten bleiben Aufgabe des Gastgebers - Vertragsvorlagen mit Versionen (je Angebot, Portal oder Wohnung waehlbar), benutzte Versionen gesperrt; Angebot und finaler Vertrag als unveraenderliche PDF mit SHA-256, Vertrag wird nie neu geschrieben - Anreise-Mail je Wohnung einstellbar (Standard 3 Tage), neue Textfelder Schluessel/Parken/Ankunftstag Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
eafab8a2cb
commit
a73b164ea1
51 files changed
+1807
-52
No files matched your search
@@ -6,13 +6,17 @@
|
||||
use App\Actions\CreateReservation;
|
||||
use App\Actions\RecordPayment;
|
||||
use App\Actions\SendBookingReminders;
|
||||
use App\Actions\SendPaymentReminder;
|
||||
use App\Enums\BookingStatus;
|
||||
use App\Enums\BookingTaskKind;
|
||||
use App\Enums\BookingTaskStatus;
|
||||
use App\Filament\Resources\Bookings\Pages\ViewBooking;
|
||||
use App\Filament\Resources\Bookings\RelationManagers\PaymentsRelationManager;
|
||||
use App\Mail\ArrivalInformation;
|
||||
use App\Mail\BookingConfirmed;
|
||||
use App\Mail\PaymentReminder;
|
||||
use App\Models\Booking;
|
||||
use App\Models\BookingTask;
|
||||
use App\Models\Property;
|
||||
use App\Models\User;
|
||||
use App\Pricing\StayRequest;
|
||||
@@ -85,7 +89,15 @@ public function test_reminders_are_sent_once_at_the_right_time(): void
|
||||
$this->travelTo(CarbonImmutable::parse('2026-10-30 09:00'));
|
||||
$this->assertSame(1, $reminders->handle()['deposit_overdue']);
|
||||
$this->assertSame(0, $reminders->handle()['deposit_overdue']);
|
||||
Mail::assertNotSent(PaymentReminder::class);
|
||||
$task = BookingTask::query()->where('kind', BookingTaskKind::DepositReminder)->sole();
|
||||
$this->assertSame(BookingTaskStatus::Open, $task->status);
|
||||
|
||||
app(SendPaymentReminder::class)->handle($task, 'Test');
|
||||
Mail::assertSent(PaymentReminder::class, 1);
|
||||
Mail::assertSent(PaymentReminder::class, fn (PaymentReminder $mail): bool => $mail->kind === PaymentReminder::DEPOSIT_OVERDUE && $mail->hasBcc(config('fewo.notification_email')));
|
||||
$this->assertSame(BookingTaskStatus::Done, $task->fresh()->status);
|
||||
$this->assertNotNull($booking->fresh()->deposit_reminded_at);
|
||||
|
||||
(new RecordPayment)->handle($booking, $booking->deposit, today());
|
||||
|
||||
@@ -97,7 +109,9 @@ public function test_reminders_are_sent_once_at_the_right_time(): void
|
||||
$this->travelTo(CarbonImmutable::parse('2026-11-04 09:00'));
|
||||
$this->assertSame(1, $reminders->handle()['balance_overdue']);
|
||||
|
||||
$this->travelTo(CarbonImmutable::parse('2026-11-24 09:00'));
|
||||
$this->travelTo(CarbonImmutable::parse('2026-11-27 09:00'));
|
||||
$this->assertSame(0, $reminders->handle()['arrival_info'], 'default: 3 days before arrival');
|
||||
$this->travelTo(CarbonImmutable::parse('2026-11-28 09:00'));
|
||||
$this->assertSame(1, $reminders->handle()['arrival_info']);
|
||||
Mail::assertSent(ArrivalInformation::class);
|
||||
|
||||
|
||||
Reference in new issue
Block a user