Import transfer error

This commit is contained in:
James Cole 2017-08-12 21:23:19 +02:00
parent bdd72f0d30
commit 26740668da
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -226,7 +226,7 @@ trait ImportSupport
// if opposing is an asset account, it's a transfer:
if ($account->accountType->type === AccountType::ASSET) {
Log::debug(sprintf('Opposing account #%d %s is an asset account, make transfer.', $account->id, $account->name));
$transactionType = TransactionType::whereType(TransactionType::TRANSFER)->first();
$transactionType = TransactionType::TRANSFER;
}
// verify that opposing account is of the correct type: