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
@@ -88,7 +88,7 @@ public function test_cost_is_calculated_from_the_rent_or_from_the_total_as_the_r
|
||||
public function test_the_offer_freezes_the_rule_and_the_contract_can_show_it(): void
|
||||
{
|
||||
$policy = $this->policy();
|
||||
$template = ContractTemplate::query()->create(['name' => 'Direkt', 'version' => 1, 'body' => '<p>Storno:</p>{{ storno_regel }}', 'cancellation_policy_id' => $policy->id]);
|
||||
$template = ContractTemplate::query()->create(['released_at' => now(), 'name' => 'Direkt', 'version' => 1, 'body' => '<p>Storno:</p>{{ storno_regel }}', 'cancellation_policy_id' => $policy->id]);
|
||||
$offer = app(SendOffer::class)->handle($this->booking(), ['contract_template_id' => $template->id]);
|
||||
|
||||
$policy->update(['tiers' => [['min_days' => 0, 'percent' => 5]]]);
|
||||
@@ -168,7 +168,7 @@ private function booking(string $arrival = '2026-11-07', string $departure = '20
|
||||
|
||||
private function offerWith(CancellationPolicy $policy, string $arrival = '2026-11-07', string $departure = '2026-11-10', bool $confirm = false): Booking
|
||||
{
|
||||
$template = ContractTemplate::query()->firstOrCreate(['name' => 'T'.$policy->id, 'version' => 1], ['cancellation_policy_id' => $policy->id]);
|
||||
$template = ContractTemplate::query()->firstOrCreate(['name' => 'T'.$policy->id, 'version' => 1], ['cancellation_policy_id' => $policy->id, 'released_at' => now()]);
|
||||
$offer = app(SendOffer::class)->handle($this->booking($arrival, $departure), ['contract_template_id' => $template->id]);
|
||||
if ($confirm) {
|
||||
$offer->update(['status' => BookingStatus::Confirmed, 'hold_expires_at' => null]);
|
||||
|
||||
Reference in new issue
Block a user