Small cleanup in CSV processor

This commit is contained in:
James Cole
2017-08-12 16:12:30 +02:00
parent 0375f77b73
commit accbff3ccb
2 changed files with 61 additions and 33 deletions

View File

@@ -397,7 +397,7 @@ class ImportStorage
$foreignCurrencyId = $this->getForeignCurrencyId($importJournal, $currency);
$date = $importJournal->getDate($this->dateFormat);
$transactionType = $this->getTransactionType($amount);
$opposing = $this->getOpposingAccount($importJournal->opposing, $amount);
$opposing = $this->getOpposingAccount($importJournal->opposing, $asset->id, $amount);
// if opposing is an asset account, it's a transfer:
if ($opposing->accountType->type === AccountType::ASSET) {