Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Small bug fix in the import routine.
James Colec140f718784c
diff --git a/app/lib/Firefly/Queue/Import.php b/app/lib/Firefly/Queue/Import.phpindex 70670a4824..935bbaa248 100644--- a/app/lib/Firefly/Queue/Import.php+++ b/app/lib/Firefly/Queue/Import.php@@ -310,16 +310,19 @@ class Importif (is_null($account)) {\Log::debug('Cash account is needed.');$account = $this->_accounts->getCashAccount();- \Log::info($account);}+ // findforeach ($journal->transactions as $transaction) {- if ($transaction->account()->first()->account_type_id == 5) {+ $accountType = $transaction->account->accounttype->type;+ if ($accountType == 'Import account') {$transaction->account()->associate($account);$transaction->save();\Log::debug('Updated transactions (#' . $journal->id . '), #' . $transaction->id . '\'s Account.');+ } else {+ \Log::error('Found account type: "' . $accountType.'" instead of expected "Import account"');}}