Vertragsvorlagen als ganzes Dokument mit Platzhaltern, Wohnungsdaten, Portal-Zuordnung
Deploy FeWo mit PipelineManager / deploy (push) Successful in 3m38s
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:
1 parent
a73b164ea1
commit
89d569b6c8
17 files changed
+648
-28
No files matched your search
@@ -26,7 +26,7 @@
|
||||
* A sales channel (portal) of a property. Our system leads: occupations are imported from the
|
||||
* channel and every channel gets its own export feed without its own occupations.
|
||||
*/
|
||||
#[Fillable(['property_id', 'name', 'connector', 'settings', 'is_active', 'requires_manual_blocking', 'manage_url', 'status', 'booking_model', 'import_enabled', 'export_enabled', 'export_mode', 'external_poll_minutes', 'echo_behavior', 'echo_notes', 'operating_notes', 'portal_verified_at', 'payment_tasks_inquiry', 'payment_tasks_reservation', 'contract_template_id'])]
|
||||
#[Fillable(['property_id', 'name', 'connector', 'settings', 'is_active', 'requires_manual_blocking', 'manage_url', 'status', 'booking_model', 'import_enabled', 'export_enabled', 'export_mode', 'external_poll_minutes', 'echo_behavior', 'echo_notes', 'operating_notes', 'portal_verified_at', 'payment_tasks_inquiry', 'payment_tasks_reservation', 'contract_template_id', 'contract_template_reservation_id'])]
|
||||
#[Hidden(['export_token', 'previous_export_token', 'export_snapshot', 'settings', 'ical_analysis'])]
|
||||
class Channel extends Model
|
||||
{
|
||||
|
||||
@@ -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,
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
'cancellation_mode',
|
||||
'free_cancellation_days',
|
||||
'contract_template_id',
|
||||
'contract_data',
|
||||
'check_in_time',
|
||||
'check_out_time',
|
||||
'changeover_weekday',
|
||||
@@ -80,6 +81,7 @@ protected function casts(): array
|
||||
'arrival_info_days_before' => 'integer',
|
||||
'cancellation_mode' => CancellationMode::class,
|
||||
'free_cancellation_days' => 'integer',
|
||||
'contract_data' => 'array',
|
||||
'min_stay_fill_gaps' => 'boolean',
|
||||
'min_stay_until_changeover' => 'boolean',
|
||||
'changeover_weekday' => 'integer',
|
||||
|
||||
Reference in new issue
Block a user