Invoices can be uploaded
This commit is contained in:
@@ -5,6 +5,8 @@ namespace App\Installer;
|
||||
use App\Enumerations\CostUnitType;
|
||||
use App\Enumerations\EatingHabit;
|
||||
use App\Enumerations\FirstAidPermission;
|
||||
use App\Enumerations\InvoiceStatus;
|
||||
use App\Enumerations\InvoiceType;
|
||||
use App\Enumerations\SwimmingPermission;
|
||||
use App\Enumerations\UserRole;
|
||||
use App\Models\Tenant;
|
||||
@@ -17,6 +19,8 @@ class ProductionDataSeeder {
|
||||
$this->installEatingHabits();
|
||||
$this->installFirstAidPermissions();
|
||||
$this->installTenants();
|
||||
$this->installInvoiceMetaData();
|
||||
|
||||
}
|
||||
|
||||
private function installUserRoles() {
|
||||
@@ -68,4 +72,37 @@ class ProductionDataSeeder {
|
||||
'has_active_instance' => true,
|
||||
]);
|
||||
}
|
||||
|
||||
private function installInvoiceMetaData() {
|
||||
InvoiceType::create([
|
||||
'slug' => InvoiceType::INVOICE_TYPE_TRAVELLING,
|
||||
'name' => 'Reisekosten'
|
||||
]);
|
||||
|
||||
InvoiceType::create([
|
||||
'slug' => InvoiceType::INVOICE_TYPE_PROGRAM,
|
||||
'name' => 'Programmkosten'
|
||||
]);
|
||||
|
||||
InvoiceType::create([
|
||||
'slug' => InvoiceType::INVOICE_TYPE_ACCOMMODATION,
|
||||
'name' => 'Unterkunftskosten'
|
||||
]);
|
||||
|
||||
InvoiceType::create([
|
||||
'slug' => InvoiceType::INVOICE_TYPE_CATERING,
|
||||
'name' => 'Verpflegungskosten',
|
||||
]);
|
||||
|
||||
InvoiceType::create([
|
||||
'slug' => InvoiceType::INVOICE_TYPE_OTHER,
|
||||
'name' => 'Sonstige Kosten'
|
||||
]);
|
||||
|
||||
InvoiceStatus::create(['slug' => InvoiceStatus::INVOICE_STATUS_NEW]);
|
||||
InvoiceStatus::create(['slug' => InvoiceStatus::INVOICE_STATUS_APPROVED]);
|
||||
InvoiceStatus::create(['slug' => InvoiceStatus::INVOICE_STATUS_EXPORTED]);
|
||||
InvoiceStatus::create(['slug' => InvoiceStatus::INVOICE_STATUS_DENIED]);
|
||||
InvoiceStatus::create(['slug' => InvoiceStatus::INVOICE_STAUTS_DELETED]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user