Added seeder for account types and account classes.

This commit is contained in:
Lukas Halbritter
2018-09-10 12:33:20 +02:00
parent 5bdb4bf502
commit 276e617b62
4 changed files with 321 additions and 5 deletions
@@ -1,6 +1,7 @@
<?php <?php
use Illuminate\Database\Seeder; use Illuminate\Database\Seeder;
use Carbon\Carbon;
class AccountClassesTableSeeder extends Seeder class AccountClassesTableSeeder extends Seeder
{ {
@@ -11,6 +12,87 @@ class AccountClassesTableSeeder extends Seeder
*/ */
public function run() public function run()
{ {
// DB::table('account_classes')->insert([
[
'scope_id' => 1,
'io_type' => 1,
'number' => 1000,
'name' => 'EINNAHMEN',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'scope_id' => 1,
'io_type' => 2,
'number' => 1500,
'name' => 'AUSGABEN',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'scope_id' => 2,
'io_type' => 1,
'number' => 2000,
'name' => 'EINNAHMEN',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'scope_id' => 2,
'io_type' => 2,
'number' => 2500,
'name' => 'AUSGABEN',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'scope_id' => 3,
'io_type' => 1,
'number' => 3000,
'name' => 'EINNAHMEN',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'scope_id' => 3,
'io_type' => 2,
'number' => 3500,
'name' => 'AUSGABEN',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'scope_id' => 4,
'io_type' => 1,
'number' => 4000,
'name' => 'EINNAHMEN',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'scope_id' => 4,
'io_type' => 2,
'number' => 4500,
'name' => 'AUSGABEN',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'scope_id' => 5,
'io_type' => 1,
'number' => 5000,
'name' => 'EINNAHMEN',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'scope_id' => 5,
'io_type' => 2,
'number' => 5500,
'name' => 'AUSGABEN',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
]
]);
} }
} }
@@ -1,6 +1,7 @@
<?php <?php
use Illuminate\Database\Seeder; use Illuminate\Database\Seeder;
use Carbon\Carbon;
class AccountTypesTableSeeder extends Seeder class AccountTypesTableSeeder extends Seeder
{ {
@@ -11,6 +12,233 @@ class AccountTypesTableSeeder extends Seeder
*/ */
public function run() public function run()
{ {
// /**********************************************************************
* IDEELLER BEREICH *
**********************************************************************/
// EINNAHMEN
DB::table('account_types')->insert([
[
'account_class_id' => 1,
'number' => 1001,
'name' => 'Mitgliederbeiträge',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 1,
'number' => 1002,
'name' => 'Teilnehmerbeiträge Probenwochenenden',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 1,
'number' => 1003,
'name' => 'Teilnehmerbeiträge Wettbewerbe etc.',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 1,
'number' => 1004,
'name' => 'Teilnehmerbeiträge Workshops & Coachings',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 1,
'number' => 1010,
'name' => 'Spenden',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 1,
'number' => 1011,
'name' => 'Zuschüsse',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 1,
'number' => 1012,
'name' => 'Preisgelder, Prämien',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 1,
'number' => 1070,
'name' => 'Verkaufserlöse Notenverkauf',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
]
]);
// AUSGABEN
DB::table('account_types')->insert([
[
'account_class_id' => 2,
'number' => 1501,
'name' => 'Honorare Chorleiter',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1502,
'name' => 'Honorare Gastkünstler',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1503,
'name' => 'Honorare Workshopleiter & Coaches',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1504,
'name' => 'Honorare Ton- und Lichttechniker',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1505,
'name' => 'Honorare Fotografen',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1509,
'name' => 'Sontige Honorare',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1510,
'name' => 'Kontoführung',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1520,
'name' => 'Webdienste, Social Media',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1530,
'name' => 'GEMA Gebühren',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1531,
'name' => 'Beiträge Chorverband',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1532,
'name' => 'Versicherungen',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1540,
'name' => 'Büromaterial',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1541,
'name' => 'Porto',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1550,
'name' => 'Teilnehmerbeiträge Wettbewerbe etc.',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1559,
'name' => 'Sonstige Teilnehmerbeiträge',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1560,
'name' => 'Miete PRobenräume',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1561,
'name' => 'Miete Konzerträume',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1562,
'name' => 'Sontige Mieten',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1570,
'name' => 'Arrangements',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1571,
'name' => 'Anschaffungskosten Noten',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1580,
'name' => 'Geschenke, Jubiläen, Ehrungen',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1590,
'name' => 'Fahrtkosten',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1600,
'name' => 'Verpflegung Probenwochenenden',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
]);
} }
} }
+4 -3
View File
@@ -12,10 +12,11 @@ class ConstantsSeeder extends Seeder
public function run() public function run()
{ {
$this->call([ $this->call([
AccountClassesTableSeeder::class, ScopesTableSeeder::class,
AccountTypesTableSeeder::class,
IOTypesTableSeeder::class, IOTypesTableSeeder::class,
ScopesTableSeeder::class
AccountClassesTableSeeder::class,
AccountTypesTableSeeder::class
]); ]);
} }
} }
@@ -32,6 +32,11 @@ class ScopesTableSeeder extends Seeder
'name' => 'Wirtschaftlicher Geschäftsbetrieb', 'name' => 'Wirtschaftlicher Geschäftsbetrieb',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s') 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'name' => 'Sonstiges',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
] ]
]); ]);
} }