Vertragsvorlagen als ganzes Dokument mit Platzhaltern, Wohnungsdaten, Portal-Zuordnung
Deploy FeWo mit PipelineManager / deploy (push) Successful in 3m38s

- Vorlage = kompletter Vertragstext plus Anlage mit Platzhaltern ({{ mieter }}, {{ anreise }}, {{ wohnung.x }}),
  eigene Vertrags-PDF, Anzeige auf der Angebotsseite; Text und Wohnungsdaten werden beim Angebot eingefroren
- Wohnungsdaten (WLAN, Codes, ...) als Vertragsdaten der Wohnung statt im Vorlagentext
- Je Portal eigene Vorlage fuer Anfragen und fuer beim Portal verbindliche Buchungen; direkte Bestaetigung
  nutzt dieselbe Aufloesung; Bestaetigungsmail ohne Zahlungsanweisung bei Portalzahlung
- Befehl contracts:install-fewo-direkt legt die FeWo-direkt-Vorlage aus dem Vertragstext des Vermieters an

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Sonnet 5.5 committed 2026-10-30 16:04:30 +01:00
1 parent a73b164ea1
commit 89d569b6c8
17 files changed
+648 -28

No files matched your search

+12 -1
View File
@@ -11,7 +11,7 @@
* texts of the same meaning when an offer is made; the offer then freezes a copy. A version that has been used in
* an offer is never edited – a new version is created instead.
*/
#[Fillable(['name', 'version', 'texts', 'notes'])]
#[Fillable(['name', 'version', 'texts', 'body', 'annex_title', 'annex_body', 'notes'])]
class ContractTemplate extends Model
{
use BelongsToTenant;
@@ -36,6 +36,14 @@ protected function casts(): array
return ['texts' => 'array', 'version' => 'integer'];
}
/**
* A complete contract document (text with placeholders) instead of text blocks.
*/
public function hasDocument(): bool
{
return filled($this->body) && trim(strip_tags((string) $this->body)) !== '';
}
public function label(): string
{
return $this->name.' (Version '.$this->version.')';
@@ -72,6 +80,9 @@ public function newVersion(): self
'name' => $this->name,
'version' => $latest + 1,
'texts' => $this->texts,
'body' => $this->body,
'annex_title' => $this->annex_title,
'annex_body' => $this->annex_body,
'notes' => $this->notes,
]);
}