User-Panel-Restarbeiten: PM-Guard, Profil-Rework, USt-ID-Prüfung, Buchungspflicht-Adresse

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Kevin Adametz 2026-06-12 14:36:18 +00:00
parent 036a53499f
commit afcca34f91
25 changed files with 905 additions and 140 deletions

View file

@ -0,0 +1,40 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
/**
* Rechnungsadresse vervollständigen (User-Panel-Restarbeiten, 12.06.2026):
* Anrede/Titel existierten bereits, es fehlten Firmenname sowie getrennte
* Vor-/Nachnamen. `name` bleibt als zusammengesetzte Empfängerzeile für
* die Rechnungs-Snapshots erhalten und wird beim Speichern aus
* Vor-/Nachname gefüllt. Die Snapshot-Tabelle bekommt `company` ebenfalls,
* damit der Firmenname pro Rechnung eingefroren wird.
*/
return new class extends Migration
{
public function up(): void
{
Schema::table('billing_addresses', function (Blueprint $table): void {
$table->string('company', 255)->nullable()->after('title');
$table->string('first_name', 80)->nullable()->after('company');
$table->string('last_name', 80)->nullable()->after('first_name');
});
Schema::table('invoice_billing_addresses', function (Blueprint $table): void {
$table->string('company', 255)->nullable()->after('title');
});
}
public function down(): void
{
Schema::table('billing_addresses', function (Blueprint $table): void {
$table->dropColumn(['company', 'first_name', 'last_name']);
});
Schema::table('invoice_billing_addresses', function (Blueprint $table): void {
$table->dropColumn('company');
});
}
};