Allow the mapping of asset accounts for opposing value

This commit is contained in:
James Cole
2018-05-12 20:56:34 +02:00
parent 9c507f7f62
commit 528da3f08e
3 changed files with 4 additions and 5 deletions

View File

@@ -379,8 +379,8 @@ class ImportArrayStorage
foreach ($toStore as $index => $store) {
Log::debug(sprintf('Going to store entry %d of %d', $index + 1, $count));
// convert the date to an object:
$store['date'] = Carbon::createFromFormat('Y-m-d', $store['date']);
$store['date'] = Carbon::createFromFormat('Y-m-d', $store['date']);
$store['description'] = $store['description'] === '' ? '(empty description)' : $store['description'];
// store the journal.
$collection->push($this->journalRepos->store($store));
}