Back to basics.

This commit is contained in:
James Cole
2017-08-12 16:40:51 +02:00
parent accbff3ccb
commit a879528ed8
3 changed files with 456 additions and 450 deletions

View File

@@ -335,7 +335,7 @@ class ImportAccount
}
$this->expectedType = $oldExpectedType;
// if search for an asset account, fall back to given "default account" (mandatory)
// 4: if search for an asset account, fall back to given "default account" (mandatory)
if ($this->expectedType === AccountType::ASSET) {
$this->account = $this->repository->find($this->defaultAccountId);
Log::debug(sprintf('Fall back to default account #%d "%s"', $this->account->id, $this->account->name));
@@ -343,6 +343,7 @@ class ImportAccount
return true;
}
// 5: then maybe, create one:
Log::debug(sprintf('Found no account of type %s so must create one ourselves.', $this->expectedType));
$data = [