mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-22 08:56:39 -06:00
Fix #2052
This commit is contained in:
parent
40d77d82cd
commit
1ec2772255
@ -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) {
|
||||
// @codeCoverageIgnoreStart
|
||||
Log::error(
|
||||
@ -129,6 +131,7 @@ class ConvertToTransfer implements ActionInterface
|
||||
|
||||
return false; // @codeCoverageIgnore
|
||||
}
|
||||
|
||||
/**
|
||||
* A deposit is from Revenue to Asset.
|
||||
* We replace the Revenue with another asset.
|
||||
|
Loading…
Reference in New Issue
Block a user