Add title sections to invoices backend and frontend, #41

This commit is contained in:
2025-11-19 10:12:45 +01:00
parent 1b76c6c61b
commit ebbbe42cc3
7 changed files with 80 additions and 31 deletions
@@ -14,7 +14,8 @@ public function up(): void
Schema::create('line_items', function (Blueprint $table) {
$table->id();
$table->foreignId('invoice_id')->constrained()->onDelete('cascade');
$table->integer('position')->default(0);
$table->decimal('position', 10, 2)->default(0);
$table->boolean('is_section')->default(false);
$table->string('title')->nullable();
$table->string('description')->nullable();
$table->integer('quantity')->default(1);