This should fix #693.

This commit is contained in:
James Cole
2017-07-07 08:04:21 +02:00
parent 71eed45b77
commit dd508dbc49
5 changed files with 52 additions and 30 deletions

View File

@@ -29,7 +29,6 @@ use FireflyIII\Models\TransactionJournal;
use FireflyIII\Models\TransactionType;
use FireflyIII\Rules\Processor;
use Illuminate\Support\Collection;
use Illuminate\Support\MessageBag;
use Log;
use Steam;
@@ -107,6 +106,7 @@ class ImportStorage
$this->storeImportJournal($index, $object);
} catch (FireflyException $e) {
$this->errors->push($e->getMessage());
Log::error(sprintf('Cannot import row #%d because: %s', $index, $e->getMessage()));
}
}
@@ -351,6 +351,13 @@ class ImportStorage
$this->journals->push($journal);
Log::info(
sprintf(
'Imported new journal #%d with description "%s" and amount %s %s.', $journal->id, $journal->description, $journal->transactionCurrency->code,
$amount
)
);
return true;
}