Zahlungsaufgaben, Freigabe-/Storno-Link, Vertragsvorlagen, Anreise-Mail
Deploy FeWo mit PipelineManager / deploy (push) Successful in 3m36s
Deploy FeWo mit PipelineManager / deploy (push) Successful in 3m36s
- Zahlungen werden nicht mehr automatisch angemahnt: faellige Anzahlung/Restzahlung werden Aufgaben (Zahlungen & Wuensche, Tages-/Wochenuebersicht); Mail nur per Klick; je Portal und Buchungstyp abschaltbar - Freigabe-Link in der Eingangsbestaetigung, Storno-Link in der Buchungsbestaetigung; je Wohnung Wunsch / sofort / sofort bis Frist; Stornowuensche und Kosten bleiben Aufgabe des Gastgebers - Vertragsvorlagen mit Versionen (je Angebot, Portal oder Wohnung waehlbar), benutzte Versionen gesperrt; Angebot und finaler Vertrag als unveraenderliche PDF mit SHA-256, Vertrag wird nie neu geschrieben - Anreise-Mail je Wohnung einstellbar (Standard 3 Tage), neue Textfelder Schluessel/Parken/Ankunftstag Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
eafab8a2cb
commit
a73b164ea1
51 files changed
+1807
-52
No files matched your search
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Tasks for the landlord about a booking (payment reminders, cancellation requests), the payment policy per
|
||||
* portal and the time of the arrival information per property. Additive; the defaults keep fully own
|
||||
* bookings under payment control and leave portal reservations (portal collects the money) without tasks.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('booking_tasks', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('tenant_id')->constrained()->cascadeOnDelete();
|
||||
$table->foreignId('booking_id')->constrained()->cascadeOnDelete();
|
||||
$table->string('kind', 30);
|
||||
$table->string('status', 12)->default('open');
|
||||
$table->date('due_on')->nullable();
|
||||
$table->text('note')->nullable();
|
||||
$table->string('completed_by')->nullable();
|
||||
$table->timestamp('completed_at')->nullable();
|
||||
$table->timestamps();
|
||||
$table->unique(['booking_id', 'kind']);
|
||||
$table->index(['tenant_id', 'status']);
|
||||
});
|
||||
|
||||
Schema::table('channels', function (Blueprint $table) {
|
||||
$table->boolean('payment_tasks_inquiry')->default(true)->after('operating_notes');
|
||||
$table->boolean('payment_tasks_reservation')->default(false)->after('payment_tasks_inquiry');
|
||||
});
|
||||
|
||||
Schema::table('properties', function (Blueprint $table) {
|
||||
$table->unsignedTinyInteger('arrival_info_days_before')->default(3)->after('offer_mode');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('properties', function (Blueprint $table) {
|
||||
$table->dropColumn('arrival_info_days_before');
|
||||
});
|
||||
Schema::table('channels', function (Blueprint $table) {
|
||||
$table->dropColumn(['payment_tasks_inquiry', 'payment_tasks_reservation']);
|
||||
});
|
||||
Schema::dropIfExists('booking_tasks');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* What happens when a guest uses the cancellation link: only a request for the landlord (default), an
|
||||
* immediate cancellation, or an immediate cancellation up to N days before arrival.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('properties', function (Blueprint $table) {
|
||||
$table->string('cancellation_mode', 20)->default('request')->after('arrival_info_days_before');
|
||||
$table->unsignedSmallInteger('free_cancellation_days')->default(14)->after('cancellation_mode');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('properties', function (Blueprint $table) {
|
||||
$table->dropColumn(['cancellation_mode', 'free_cancellation_days']);
|
||||
});
|
||||
}
|
||||
};
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Contract templates with versions (texts that replace the website texts in an offer), a default per property
|
||||
* and per portal, and SHA-256 fingerprints of the stored offer/contract PDFs. Additive.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('contract_templates', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('tenant_id')->constrained()->cascadeOnDelete();
|
||||
$table->string('name');
|
||||
$table->unsignedInteger('version')->default(1);
|
||||
$table->json('texts')->nullable();
|
||||
$table->text('notes')->nullable();
|
||||
$table->timestamps();
|
||||
$table->unique(['tenant_id', 'name', 'version']);
|
||||
});
|
||||
|
||||
Schema::table('properties', function (Blueprint $table) {
|
||||
$table->foreignId('contract_template_id')->nullable()->after('free_cancellation_days')->constrained('contract_templates')->nullOnDelete();
|
||||
});
|
||||
Schema::table('channels', function (Blueprint $table) {
|
||||
$table->foreignId('contract_template_id')->nullable()->after('payment_tasks_reservation')->constrained('contract_templates')->nullOnDelete();
|
||||
});
|
||||
Schema::table('bookings', function (Blueprint $table) {
|
||||
$table->string('offer_pdf_sha256', 64)->nullable()->after('offer_hash');
|
||||
$table->string('contract_pdf_sha256', 64)->nullable()->after('offer_pdf_sha256');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('bookings', function (Blueprint $table) {
|
||||
$table->dropColumn(['offer_pdf_sha256', 'contract_pdf_sha256']);
|
||||
});
|
||||
Schema::table('channels', function (Blueprint $table) {
|
||||
$table->dropConstrainedForeignId('contract_template_id');
|
||||
});
|
||||
Schema::table('properties', function (Blueprint $table) {
|
||||
$table->dropConstrainedForeignId('contract_template_id');
|
||||
});
|
||||
Schema::dropIfExists('contract_templates');
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user