Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Cannot create transfer
James Coledcf90b615947
diff --git a/app/Factory/TransactionFactory.php b/app/Factory/TransactionFactory.phpindex bb5baf3cbe..cc615dcc7d 100644--- a/app/Factory/TransactionFactory.php+++ b/app/Factory/TransactionFactory.php@@ -109,7 +109,7 @@ class TransactionFactoryLog::debug(sprintf('Source type is "%s", destination type is "%s"', $sourceType, $destinationType));// throw big fat error when source type === dest type- if ($sourceAccount->accountType->type === $destinationAccount->accountType->type) {+ if ($sourceAccount->accountType->type === $destinationAccount->accountType->type && $journal->transactionType->type !== TransactionType::TRANSFER) {throw new FireflyException(sprintf('Source and destination account cannot be both of the type "%s"', $destinationAccount->accountType->type));}if ($sourceAccount->accountType->type !== AccountType::ASSET && $destinationAccount->accountType->type !== AccountType::ASSET) {