mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fixed some rare bugs.
This commit is contained in:
parent
7d21255f7f
commit
0a147e5c9c
@ -181,13 +181,13 @@ class ImportValidator
|
||||
Log::debug(sprintf('No account named %s of type %s, create new account.', $account->name, $type));
|
||||
$result = $repository->store(
|
||||
[
|
||||
'user' => $this->user->id,
|
||||
'accountType' => config('firefly.shortNamesByFullName.' . $type),
|
||||
'name' => $account->name,
|
||||
'user' => $this->user->id,
|
||||
'accountType' => config('firefly.shortNamesByFullName.' . $type),
|
||||
'name' => $account->name,
|
||||
'virtualBalance' => 0,
|
||||
'active' => true,
|
||||
'iban' => null,
|
||||
'openingBalance' => 0,
|
||||
'active' => true,
|
||||
'iban' => null,
|
||||
'openingBalance' => 0,
|
||||
]
|
||||
);
|
||||
}
|
||||
@ -262,6 +262,7 @@ class ImportValidator
|
||||
$entry->valid = false;
|
||||
Log::warning('Cannot import entry. Asset account is NULL and import account is also NULL.');
|
||||
|
||||
return $entry;
|
||||
}
|
||||
Log::debug('Asset account is OK.', ['id' => $entry->fields['asset-account']->id, 'name' => $entry->fields['asset-account']->name]);
|
||||
|
||||
|
@ -143,7 +143,7 @@ class TagRepository implements TagRepositoryInterface
|
||||
->transactionJournals()
|
||||
->sortCorrectly()
|
||||
->expanded()
|
||||
->groupBy(['tag_transaction_journal.tag_id'])
|
||||
->groupBy(['tag_transaction_journal.tag_id','tag_transaction_journal.transaction_journal_id'])
|
||||
->get(TransactionJournal::queryFields());
|
||||
|
||||
return $journals;
|
||||
|
Loading…
Reference in New Issue
Block a user