First full implementation of new storage routine.

This commit is contained in:
James Cole
2019-03-17 17:05:16 +01:00
parent 6bd2b4f288
commit 200a4b18a8
19 changed files with 958 additions and 674 deletions

View File

@@ -80,6 +80,7 @@ class AccountFactory
$data['iban'] = $this->filterIban($data['iban']);
// account may exist already:
Log::debug('Data array is as follows', $data);
$return = $this->find($data['name'], $type->type);
if (null === $return) {
@@ -237,6 +238,13 @@ class AccountFactory
$result = AccountType::whereType($accountType)->first();
}
}
if (null === $result) {
Log::warning(sprintf('Found NO account type based on %d and "%s"', $accountTypeId, $accountType));
}
if (null !== $result) {
Log::debug(sprintf('Found account type based on %d and "%s": "%s"', $accountTypeId, $accountType, $result->type));
}
return $result;