Vorgang: fehlende Angaben selbst eintragen als nächster Schritt
Deploy FeWo mit PipelineManager / deploy (push) Successful in 5m4s
Deploy FeWo mit PipelineManager / deploy (push) Successful in 5m4s
- Wartet der Vorgang auf die Antwort des Gastes, ist „Fehlende Angaben selbst eintragen“ der große Schalter (vorher leer, Dialog nur unter „Weitere Möglichkeiten“). Die Eingabe läuft über den Fakteneingang (Herkunft „von Ihnen eingetragen“); die Rückfrage endet, sobald alles da ist, im Automatikmodus geht das Angebot hinaus. - Dialog verständlicher benannt: „Gast eintragen“ / „Fehlende Angaben selbst eintragen“ / „Gastdaten bearbeiten“. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
154b8a434c
commit
f4a435c71a
2 files changed
+30
-3
No files matched your search
@@ -4,11 +4,13 @@
|
||||
|
||||
use App\Actions\ContributeCaseFacts;
|
||||
use App\Actions\CreateReservation;
|
||||
use App\Actions\ProvideGuestContact;
|
||||
use App\Actions\RequestCaseData;
|
||||
use App\Actions\TakeOverExternalBooking;
|
||||
use App\Enums\BookingStatus;
|
||||
use App\Enums\BookingTaskKind;
|
||||
use App\Enums\FactSource;
|
||||
use App\Filament\Resources\Bookings\Pages\ViewBooking;
|
||||
use App\Mail\DataRequested;
|
||||
use App\Mail\ReservationReceived;
|
||||
use App\Models\Booking;
|
||||
@@ -17,6 +19,7 @@
|
||||
use App\Models\Channel;
|
||||
use App\Models\DataRequest;
|
||||
use App\Models\Property;
|
||||
use App\Models\User;
|
||||
use App\Pricing\StayRequest;
|
||||
use App\Process\CaseActivities;
|
||||
use App\Support\Content;
|
||||
@@ -24,11 +27,13 @@
|
||||
use Carbon\CarbonImmutable;
|
||||
use Database\Seeders\PropertySeeder;
|
||||
use Database\Seeders\SiteSeeder;
|
||||
use Filament\Actions\Testing\TestAction;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Illuminate\Support\Facades\URL;
|
||||
use Livewire\Livewire;
|
||||
use Tests\TestCase;
|
||||
|
||||
/**
|
||||
@@ -101,6 +106,22 @@ public function test_the_offer_waits_for_the_answer_even_when_the_steps_are_rele
|
||||
$this->assertSame(BookingStatus::Reserved, $booking->fresh()->status, 'manual processing: nothing sent by itself');
|
||||
}
|
||||
|
||||
public function test_the_landlord_enters_the_missing_details_himself_while_the_guest_is_asked(): void
|
||||
{
|
||||
$this->actingAs(User::factory()->create());
|
||||
Settings::tenant()->update(['process_defaults' => ['processing' => 'automatic', 'data_request_mode' => 'automatic']]);
|
||||
$booking = $this->request();
|
||||
|
||||
$page = Livewire::test(ViewBooking::class, ['record' => $booking->getRouteKey()]);
|
||||
$primary = $page->instance()->getCachedHeaderActions()[0];
|
||||
$this->assertSame(['provideContact', 'Fehlende Angaben selbst eintragen'], [$primary->getName(), $primary->getLabel()]);
|
||||
|
||||
$page->callAction(TestAction::make('provideContact')->arguments([]), ['guest' => ['first_name' => 'Gesa', 'last_name' => 'Gast', 'email' => 'gesa@example.org', 'street' => 'Strandweg 1', 'postal_code' => '18225', 'city' => 'Kühlungsborn', 'country' => 'DE'], 'process' => ProvideGuestContact::AUTOMATIC, 'guest_confirmed' => false]);
|
||||
|
||||
$this->assertSame(DataRequest::COMPLETED, $booking->dataRequests()->first()->status);
|
||||
$this->assertSame(BookingStatus::OfferSent, $booking->fresh()->status);
|
||||
}
|
||||
|
||||
public function test_manual_mode_leaves_the_question_to_the_landlord(): void
|
||||
{
|
||||
Settings::tenant()->update(['process_defaults' => ['data_request_mode' => 'manual']]);
|
||||
|
||||
Reference in new issue
Block a user