Dokumentenzusammenstellung und Vorlagensteuerung (Paket 3, Prozessarchitektur v0.10)
Deploy FeWo mit PipelineManager / deploy (push) Successful in 3m59s
Deploy FeWo mit PipelineManager / deploy (push) Successful in 3m59s
Eine Zusammenstellung vor jedem Dokument (Angebot, Bestaetigung, Buchungsunterlagen extern), Dokumentart je Vorgangsart, Freigaben fuer Vorlagen und Dokumentarten, Schutz vor unvereinbarten Bedingungen bei Portalbuchungen (E-004), kein doppelter Versand, Absicherung Hold 0 bis Paket 7, A6-Aufenthaltsbestaetigung vorbereitet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
64248c09fa
commit
cf11c8a474
45 files changed
+2385
-144
No files matched your search
@@ -53,7 +53,7 @@ public function test_conditions_decide_which_annexes_fit_a_booking(): void
|
||||
$withLinen = $this->annex('Wäsche', ContractAnnex::EXTRA, $linen->id);
|
||||
$viaPortal = $this->annex('Portal', ContractAnnex::CHANNEL, $portal->id);
|
||||
$manual = $this->annex('Key', ContractAnnex::MANUAL);
|
||||
$template = ContractTemplate::query()->create(['name' => 'T', 'version' => 1, 'annex_ids' => [$always->id, $withLinen->id, $viaPortal->id, $manual->id]]);
|
||||
$template = ContractTemplate::query()->create(['released_at' => now(), 'name' => 'T', 'version' => 1, 'annex_ids' => [$always->id, $withLinen->id, $viaPortal->id, $manual->id]]);
|
||||
|
||||
$plain = $this->booking();
|
||||
$this->assertSame(['WLAN'], $template->annexesFor($plain)->pluck('name')->all());
|
||||
@@ -68,7 +68,7 @@ public function test_conditions_decide_which_annexes_fit_a_booking(): void
|
||||
public function test_the_offer_freezes_the_matching_annexes_and_shows_them_everywhere(): void
|
||||
{
|
||||
$annex = $this->annex('WLAN', ContractAnnex::ALWAYS, null, 'Anlage WLAN', '<p>WLAN für {{ mieter }}</p>');
|
||||
$template = ContractTemplate::query()->create(['name' => 'T', 'version' => 1, 'body' => '<p>Vertrag</p>', 'annex_ids' => [$annex->id]]);
|
||||
$template = ContractTemplate::query()->create(['released_at' => now(), 'name' => 'T', 'version' => 1, 'body' => '<p>Vertrag</p>', 'annex_ids' => [$annex->id]]);
|
||||
|
||||
$offer = app(SendOffer::class)->handle($this->booking(), ['contract_template_id' => $template->id]);
|
||||
|
||||
@@ -86,7 +86,7 @@ public function test_an_explicit_selection_in_the_offer_replaces_the_automatic_o
|
||||
{
|
||||
$auto = $this->annex('WLAN', ContractAnnex::ALWAYS);
|
||||
$manual = $this->annex('Key', ContractAnnex::MANUAL);
|
||||
$template = ContractTemplate::query()->create(['name' => 'T', 'version' => 1, 'annex_ids' => [$auto->id]]);
|
||||
$template = ContractTemplate::query()->create(['released_at' => now(), 'name' => 'T', 'version' => 1, 'annex_ids' => [$auto->id]]);
|
||||
|
||||
$offer = app(SendOffer::class)->handle($this->booking(), ['contract_template_id' => $template->id, 'annex_ids' => [$manual->id]]);
|
||||
$this->assertSame(['Key'], array_column($offer->offer_terms['annexes'], 'name'));
|
||||
@@ -98,7 +98,7 @@ public function test_an_explicit_selection_in_the_offer_replaces_the_automatic_o
|
||||
public function test_used_annex_versions_are_locked_and_new_versions_can_be_made(): void
|
||||
{
|
||||
$annex = $this->annex('WLAN', ContractAnnex::ALWAYS);
|
||||
$template = ContractTemplate::query()->create(['name' => 'T', 'version' => 1, 'annex_ids' => [$annex->id]]);
|
||||
$template = ContractTemplate::query()->create(['released_at' => now(), 'name' => 'T', 'version' => 1, 'annex_ids' => [$annex->id]]);
|
||||
$this->assertTrue(ContractAnnexResource::canEdit($annex));
|
||||
|
||||
app(SendOffer::class)->handle($this->booking(), ['contract_template_id' => $template->id]);
|
||||
@@ -113,7 +113,7 @@ public function test_recording_extra_services_in_the_booking_changes_the_presele
|
||||
{
|
||||
$linen = Extra::query()->create(['property_id' => $this->property->id, 'name' => 'Wäschepaket', 'price' => 0, 'pricing' => 'per_item', 'is_active' => true]);
|
||||
$annex = $this->annex('Wäsche', ContractAnnex::EXTRA, $linen->id);
|
||||
$template = ContractTemplate::query()->create(['name' => 'T', 'version' => 1, 'annex_ids' => [$annex->id]]);
|
||||
$template = ContractTemplate::query()->create(['released_at' => now(), 'name' => 'T', 'version' => 1, 'annex_ids' => [$annex->id]]);
|
||||
$this->property->update(['contract_template_id' => $template->id]);
|
||||
$booking = $this->booking();
|
||||
$this->actingAs(User::factory()->create());
|
||||
|
||||
Reference in new issue
Block a user