FIX: saving new invoices was broken because changing a customer would only store billingData, but not a customerId

This commit is contained in:
2025-10-22 16:13:01 +02:00
parent 82b7215dca
commit beade697a8
3 changed files with 7 additions and 3 deletions
@@ -20,7 +20,7 @@ public function up(): void
$table->date('service_end_date')->nullable();
$table->boolean('is_recurring')->default(false);
$table->boolean('is_partial_service')->default(false);
$table->foreignId('customer_id')->constrained()->onDelete('cascade');
$table->foreignId('customer_id')->nullable()->constrained()->onDelete('cascade');
$table->string('payment_status')->default('draft');
$table->decimal('total_amount', 10, 2);
$table->text('title')->nullable();