Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix #2052
James Cole1ec27722552d
diff --git a/app/TransactionRules/Actions/ConvertToTransfer.php b/app/TransactionRules/Actions/ConvertToTransfer.phpindex b4dbe20d50..5570187836 100644--- a/app/TransactionRules/Actions/ConvertToTransfer.php+++ b/app/TransactionRules/Actions/ConvertToTransfer.php@@ -72,7 +72,9 @@ class ConvertToTransfer implements ActionInterface/** @var AccountRepositoryInterface $repository */$repository = app(AccountRepositoryInterface::class);$repository->setUser($journal->user);- $asset = $repository->findByName($this->action->action_value, [AccountType::ASSET, AccountType::DEFAULT]);+ $asset = $repository->findByName(+ $this->action->action_value, [AccountType::ASSET, AccountType::DEFAULT, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE]+ );if (null === $asset) {// @codeCoverageIgnoreStartLog::error(@@ -129,6 +131,7 @@ class ConvertToTransfer implements ActionInterfacereturn false; // @codeCoverageIgnore}+/*** A deposit is from Revenue to Asset.* We replace the Revenue with another asset.