mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-23 09:26:29 -06:00
This fixes #395
This commit is contained in:
parent
3f7e16d270
commit
cf69333c6d
@ -123,7 +123,7 @@ class SetDestinationAccount implements ActionInterface
|
||||
*/
|
||||
private function findExpenseAccount()
|
||||
{
|
||||
$account = $this->repository->findByName($this->action->action_value, [AccountType::REVENUE]);
|
||||
$account = $this->repository->findByName($this->action->action_value, [AccountType::EXPENSE]);
|
||||
if (is_null($account->id)) {
|
||||
// create new revenue account with this name:
|
||||
$data = [
|
||||
|
Loading…
Reference in New Issue
Block a user