mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-17 09:51:40 +00:00
Fix #2052
This commit is contained in:
@@ -72,7 +72,9 @@ class ConvertToTransfer implements ActionInterface
|
|||||||
/** @var AccountRepositoryInterface $repository */
|
/** @var AccountRepositoryInterface $repository */
|
||||||
$repository = app(AccountRepositoryInterface::class);
|
$repository = app(AccountRepositoryInterface::class);
|
||||||
$repository->setUser($journal->user);
|
$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) {
|
if (null === $asset) {
|
||||||
// @codeCoverageIgnoreStart
|
// @codeCoverageIgnoreStart
|
||||||
Log::error(
|
Log::error(
|
||||||
@@ -129,6 +131,7 @@ class ConvertToTransfer implements ActionInterface
|
|||||||
|
|
||||||
return false; // @codeCoverageIgnore
|
return false; // @codeCoverageIgnore
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A deposit is from Revenue to Asset.
|
* A deposit is from Revenue to Asset.
|
||||||
* We replace the Revenue with another asset.
|
* We replace the Revenue with another asset.
|
||||||
|
Reference in New Issue
Block a user