Pakete 8, 5 und 6: Beträge und Zahlungen, Ändern und Stornieren, A6 im Vorgang
Deploy FeWo mit PipelineManager / deploy (push) Successful in 4m44s

- Paket 8: Zahlungsarten (Gast an uns, laut Portal, Auszahlung, Erstattung),
  Portalbeträge als Angaben mit Quelle, Übersicht nach Zuständigkeit (R09).
- Paket 5: Ändern mit Folgenvorschau, vereinbart oder dem Gast vorgeschlagen
  (signierter Link), ein Stornoweg mit Grund und Erstattung, Portalstorno erst
  nach Bestätigung.
- Paket 6: eigene Nutzung, Besuch und Sperre als Vorgang mit Kurabgabe und
  Aufenthaltsbestätigung; Bestandsübernahme der Sperren mit identischem Export.
- Wirksame Einstellungen (Expertenansicht), Abnahmekatalog T01–T14, Ergebnis-,
  Abnahme- und Konfigurationsdokument.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 5.5 committed 2026-11-01 22:16:47 +01:00
1 parent 33f8f899d6
commit 3bcfc09417
77 files changed
+3638 -122

No files matched your search

+16 -6
View File
@@ -166,7 +166,7 @@ public function test_the_new_dialog_takes_over_a_portal_booking_and_the_page_lea
->callAction(TestAction::make('provideContact')->arguments([]), ['guest' => ['first_name' => 'Erika', 'last_name' => 'Muster', 'email' => 'erika@example.test'], 'process' => ProvideGuestContact::MANUAL, 'guest_confirmed' => false])
->assertNotified('Kontaktdaten gespeichert')
->callAction(TestAction::make('portalPrice')->arguments([]), ['portal_total' => '979.51', 'guests' => 2])
->assertNotified('Preis gespeichert');
->assertNotified('Beträge gespeichert');
$booking->refresh();
$this->assertNotNull($booking->contact_requested_at);
@@ -224,19 +224,29 @@ public function test_the_manual_status_action_is_an_expert_function_and_not_offe
$this->assertSame(BookingStatus::Paid, $portal->fresh()->status);
}
public function test_ending_a_portal_booking_cancels_it_and_asks_to_cancel_on_the_portal_too(): void
public function test_ending_a_portal_booking_requests_the_cancellation_on_the_portal_and_cancels_once_confirmed(): void
{
$booking = $this->takeOver(total: 50000);
$this->actingAs(User::factory()->create());
Livewire::test(ViewBooking::class, ['record' => $booking->getRouteKey()])
->callAction('end', ['initiated_by' => 'guest', 'reason' => 'Gast storniert im Portal', 'costs_task' => true])
->callAction('end', ['initiated_by' => 'guest', 'reason' => 'Gast storniert im Portal'])
->assertNotified('Stornierung im Portal veranlassen');
// The contract was made on the portal: the case stays booked until the cancellation is effective there.
$this->assertSame(BookingStatus::Confirmed, $booking->fresh()->status);
$this->assertNotNull($booking->fresh()->portal_cancellation_requested_at);
$this->assertTrue(BookingTask::query()->where('booking_id', $booking->id)->where('kind', BookingTaskKind::PortalCancellation)->where('status', 'open')->exists());
$this->assertSame('Gast storniert im Portal', $booking->events()->where('type', 'status')->reorder()->latest('id')->value('reason'));
$this->assertSame('confirmPortalCancellation', CaseActivities::next($booking->fresh())?->action);
Livewire::test(ViewBooking::class, ['record' => $booking->getRouteKey()])
->callAction('confirmPortalCancellation', ['initiated_by' => 'guest', 'reason' => null, 'effective' => true])
->assertNotified('Buchung storniert');
$this->assertSame(BookingStatus::Cancelled, $booking->fresh()->status);
$this->assertTrue(BookingTask::query()->where('booking_id', $booking->id)->where('kind', BookingTaskKind::PortalCancellation)->exists());
$this->assertSame('Gast storniert im Portal', $booking->events()->where('type', 'status')->reorder()->latest('id')->value('reason'));
$this->assertSame('Stornierung im Portal veranlassen bzw. prüfen', CaseActivities::next($booking->fresh())?->label);
$this->assertSame('guest', $booking->fresh()->cancellation->initiated_by);
$this->assertFalse(BookingTask::query()->where('booking_id', $booking->id)->where('kind', BookingTaskKind::PortalCancellation)->where('status', 'open')->exists());
}
public function test_archived_bookings_leave_the_list_but_keep_everything(): void