Should fix some scrutinyizer problems.

This commit is contained in:
James Cole
2015-07-09 21:48:05 +02:00
parent 075315bdaa
commit d7a9a62a1d
5 changed files with 11 additions and 13 deletions

View File

@@ -295,24 +295,17 @@ class Importer
$this->saveTags($journal);
// some debug info:
$id = $journal->id;
$type = $journal->transactionType->type;
$journalId = $journal->id;
$type = $journal->transactionType->type;
/** @var Account $asset */
$asset = $this->importData['asset-account-object'];
/** @var Account $opposing */
$opposing = $this->importData['opposing-account-object'];
Log::info('Created journal #' . $id . ' of type ' . $type . '!');
Log::info('Created journal #' . $journalId . ' of type ' . $type . '!');
Log::info('Asset account ' . $asset->name . ' (#' . $asset->id . ') lost/gained: ' . $this->importData['amount']);
Log::info($opposing->accountType->type . ' ' . $opposing->name . ' (#' . $opposing->id . ') lost/gained: ' . bcmul($this->importData['amount'], -1));
//.
//' [' . $asset->name . ' (#' .$asset->id . ')] <--> ' .
//' [' . $this->importData['opposing-account-object']->name . ' (' . $this->importData['opposing-account-object']->accountType->type . ') (#'
//. $this->importData['opposing-account-object']->id . ')]'
// );
//
return $journal;
}

View File

@@ -29,8 +29,6 @@ class AnyAccount implements MapperInterface
$list = [0 => trans('firefly.csv_do_not_map')] + $list;
//array_unshift($list, );
return $list;
}
}