Add LineItem CSV import and fix Unit API
This commit is contained in:
@@ -18,10 +18,13 @@ public function up(): void
|
||||
$table->boolean('is_section')->default(false);
|
||||
$table->string('title')->nullable();
|
||||
$table->string('description')->nullable();
|
||||
$table->integer('quantity')->default(1);
|
||||
$table->decimal('quantity')->default(1);
|
||||
$table->foreignId('unit_id')->nullable()->constrained()->nullOnDelete();
|
||||
$table->decimal('price', 10, 2)->nullable();
|
||||
$table->timestamps();
|
||||
|
||||
$table->index('position');
|
||||
$table->index('invoice_id');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ class UnitSeeder extends Seeder
|
||||
{
|
||||
public function run(): void
|
||||
{
|
||||
Unit::create(['name' => 'Stück', 'symbol' => 'Stk']);
|
||||
Unit::create(['name' => 'Stück', 'symbol' => 'Stk.']);
|
||||
Unit::create(['name' => 'Stunden', 'symbol' => 'h']);
|
||||
Unit::create(['name' => 'Tage', 'symbol' => 'd']);
|
||||
Unit::create(['name' => 'pauschal', 'symbol' => 'p']);
|
||||
|
||||
Reference in New Issue
Block a user