mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix some issues with importer #2166
This commit is contained in:
@@ -575,21 +575,24 @@ class ImportArrayStorage
|
|||||||
++$hits;
|
++$hits;
|
||||||
Log::debug(sprintf('Source IDs are the same! (%d)', $hits));
|
Log::debug(sprintf('Source IDs are the same! (%d)', $hits));
|
||||||
}
|
}
|
||||||
|
Log::debug('Source IDs are not the same.');
|
||||||
unset($transferSourceIDs);
|
unset($transferSourceIDs);
|
||||||
|
|
||||||
// compare source and destination names
|
// compare source and destination names
|
||||||
$transferSource = [(string)$transfer->account_name, (int)$transfer->opposing_account_name];
|
$transferSource = [(string)$transfer->account_name, (string)$transfer->opposing_account_name];
|
||||||
sort($transferSource);
|
sort($transferSource);
|
||||||
/** @noinspection DisconnectedForeachInstructionInspection */
|
/** @noinspection DisconnectedForeachInstructionInspection */
|
||||||
Log::debug('Comparing current transaction source+dest names', $currentSourceNames);
|
Log::debug('Comparing current transaction source+dest names', $currentSourceNames);
|
||||||
Log::debug('.. with current transfer source+dest names', $transferSource);
|
Log::debug('.. with current transfer source+dest names', $transferSource);
|
||||||
if ($currentSourceNames === $transferSource) {
|
if ($currentSourceNames === $transferSource) {
|
||||||
// @codeCoverageIgnoreStart
|
// @codeCoverageIgnoreStart
|
||||||
Log::debug(sprintf('Source names are the same! (%d)', $hits));
|
|
||||||
++$hits;
|
++$hits;
|
||||||
|
Log::debug(sprintf('Source names are the same! (%d)', $hits));
|
||||||
// @codeCoverageIgnoreEnd
|
// @codeCoverageIgnoreEnd
|
||||||
}
|
}
|
||||||
|
Log::debug('Source names are not the same.');
|
||||||
$totalHits += $hits;
|
$totalHits += $hits;
|
||||||
|
Log::debug(sprintf('Total hits is now %d, hits is %d', $totalHits, $hits));
|
||||||
if ($totalHits >= $requiredHits) {
|
if ($totalHits >= $requiredHits) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user