From 26740668da3ca5d6d4899518b1d732b8664bc634 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 12 Aug 2017 21:23:19 +0200 Subject: [PATCH] Import transfer error --- app/Import/Storage/ImportSupport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Import/Storage/ImportSupport.php b/app/Import/Storage/ImportSupport.php index adb49c5d89..a18fdfaafd 100644 --- a/app/Import/Storage/ImportSupport.php +++ b/app/Import/Storage/ImportSupport.php @@ -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: