From cf69333c6dbac32de554e382ac718a70ae35e032 Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 8 Nov 2016 21:34:13 +0100 Subject: [PATCH] This fixes #395 --- app/Rules/Actions/SetDestinationAccount.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Rules/Actions/SetDestinationAccount.php b/app/Rules/Actions/SetDestinationAccount.php index 4f6b4d28d5..829c4928c4 100644 --- a/app/Rules/Actions/SetDestinationAccount.php +++ b/app/Rules/Actions/SetDestinationAccount.php @@ -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 = [