From cceec0a6bb9f79d4848018b604156875aaa2294e Mon Sep 17 00:00:00 2001 From: Lukas Halbritter Date: Tue, 11 Sep 2018 10:53:06 +0200 Subject: [PATCH] Completed seeder for the account types table. --- .../constants/AccountTypesTableSeeder.php | 127 ++++++++++++++++++ database/seeds/constants/ConstantsSeeder.php | 2 +- 2 files changed, 128 insertions(+), 1 deletion(-) diff --git a/database/seeds/constants/AccountTypesTableSeeder.php b/database/seeds/constants/AccountTypesTableSeeder.php index 0a19678..70add23 100644 --- a/database/seeds/constants/AccountTypesTableSeeder.php +++ b/database/seeds/constants/AccountTypesTableSeeder.php @@ -238,7 +238,134 @@ class AccountTypesTableSeeder extends Seeder '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') + ] + ]); + + /********************************************************************** + * ZWECKBETRIEB * + **********************************************************************/ + + // EINNAHMEN + DB::table('account_types')->insert([ + [ + 'account_class_id' => 3, + 'number' => 2001, + 'name' => 'Verkaufserlöse Tonträger', + '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' => 3, + 'number' => 2010, + 'name' => 'Gagen', + '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' => 3, + 'number' => 2011, + 'name' => 'Verkaufserlöse Konzerttickets', + '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' => 3, + 'number' => 2020, + 'name' => 'Versandkosten', + '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' => 4, + 'number' => 2501, + 'name' => 'Produktion Tonträger', + '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' => 4, + 'number' => 2510, + 'name' => 'Bühnentechnik', + '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' => 4, + 'number' => 2520, + 'name' => 'Versandkosten', + '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' => 4, + 'number' => 2530, + 'name' => 'Verpflegung bei Konzerten', + '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' => 4, + 'number' => 2540, + 'name' => 'Druckerzeugnisse', + 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), + 'updated_at' => Carbon::now()->format('Y-m-d H:i:s') + ] + ]); + + /********************************************************************** + * WIRTSCHAFTLICHER GESCHÄFTSBETRIEB * + **********************************************************************/ + + // EINNAHMEN + DB::table('account_types')->insert([ + [ + 'account_class_id' => 7, + 'number' => 4001, + 'name' => 'Verkaufserlöse Merchandise', + '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' => 8, + 'number' => 4501, + 'name' => 'Produktion Merchandise', + 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), + 'updated_at' => Carbon::now()->format('Y-m-d H:i:s') + ] + ]); + + /********************************************************************** + * SONTIGES * + **********************************************************************/ + + // EINNAHMEN + DB::table('account_types')->insert([ + [ + 'account_class_id' => 9, + 'number' => 5001, + 'name' => 'Auslagen, Pfänder', + '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' => 10, + 'number' => 5501, + 'name' => 'Auslagen, Pfänder', + 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), + 'updated_at' => Carbon::now()->format('Y-m-d H:i:s') + ] ]); } } diff --git a/database/seeds/constants/ConstantsSeeder.php b/database/seeds/constants/ConstantsSeeder.php index 4bc66e5..63eaee5 100644 --- a/database/seeds/constants/ConstantsSeeder.php +++ b/database/seeds/constants/ConstantsSeeder.php @@ -14,7 +14,7 @@ class ConstantsSeeder extends Seeder $this->call([ ScopesTableSeeder::class, IOTypesTableSeeder::class, - + AccountClassesTableSeeder::class, AccountTypesTableSeeder::class ]);