First code for liabilities and some tests.

This commit is contained in:
James Cole
2018-08-03 16:35:55 +02:00
parent ae85876965
commit 2290fcde22
10 changed files with 282 additions and 54 deletions

View File

@@ -41,12 +41,15 @@ class AccountTypeSeeder extends Seeder
AccountType::IMPORT,
AccountType::LOAN,
AccountType::RECONCILIATION,
AccountType::DEBT,
AccountType::MORTGAGE,
AccountType::CREDITCARD,
];
foreach ($types as $type) {
try {
AccountType::create(['type' => $type]);
} catch (PDOException $e) {
Log::warning(sprintf('Could not create account type "%s". It might exist already.', $type));
Log::warning(sprintf('Could not create account type "%s". It might exist already: %s', $type , $e->getMessage()));
}
}
}