Fixed some problems.

This commit is contained in:
James Cole
2015-07-06 16:42:19 +02:00
parent d05c165ace
commit 6bdb6db330
4 changed files with 4 additions and 6 deletions

View File

@@ -126,9 +126,8 @@ class Importer
}
// post processing and validating.
$data = $this->postProcess($data, $row);
$result = $this->validateData($data);
$journal = null;
$data = $this->postProcess($data, $row);
$result = $this->validateData($data);
if ($result === true) {
$journal = $this->createTransactionJournal($data);
} else {
@@ -274,6 +273,7 @@ class Importer
$journal->save();
} else {
$text = join(',', $errors->all());
return $text;
}