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
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Contract templates as complete documents (body + annex) with placeholders, facts of the property that the
|
||||
* placeholders can use (WLAN, codes, …) and a separate template for bookings that are binding at the portal.
|
||||
* Additive; templates without a body keep working as before (text blocks).
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('contract_templates', function (Blueprint $table) {
|
||||
$table->longText('body')->nullable()->after('texts');
|
||||
$table->string('annex_title')->nullable()->after('body');
|
||||
$table->longText('annex_body')->nullable()->after('annex_title');
|
||||
});
|
||||
Schema::table('properties', function (Blueprint $table) {
|
||||
$table->json('contract_data')->nullable()->after('contract_template_id');
|
||||
});
|
||||
Schema::table('channels', function (Blueprint $table) {
|
||||
$table->foreignId('contract_template_reservation_id')->nullable()->after('contract_template_id')->constrained('contract_templates')->nullOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('channels', function (Blueprint $table) {
|
||||
$table->dropConstrainedForeignId('contract_template_reservation_id');
|
||||
});
|
||||
Schema::table('properties', function (Blueprint $table) {
|
||||
$table->dropColumn('contract_data');
|
||||
});
|
||||
Schema::table('contract_templates', function (Blueprint $table) {
|
||||
$table->dropColumn(['body', 'annex_title', 'annex_body']);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user