Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
This fixes #395
James Colecf69333c6dba
diff --git a/app/Rules/Actions/SetDestinationAccount.php b/app/Rules/Actions/SetDestinationAccount.phpindex 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 = [