mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fixed some issues in import, should improve results for #701
This commit is contained in:
@@ -264,8 +264,10 @@ class ImportAccount
|
||||
|
||||
return new Account;
|
||||
}
|
||||
|
||||
if ($account->accountType->type !== $this->expectedType) {
|
||||
// must be of the same type
|
||||
// except when mapped is an asset, then it's fair game.
|
||||
// which only shows that user must map very carefully.
|
||||
if ($account->accountType->type !== $this->expectedType && $account->accountType->type !== AccountType::ASSET) {
|
||||
Log::error(
|
||||
sprintf(
|
||||
'Mapped account #%d is of type "%s" but we expect a "%s"-account. Mapping will be ignored.', $account->id, $account->accountType->type,
|
||||
|
Reference in New Issue
Block a user