This commit is contained in:
James Cole
2016-11-08 21:34:13 +01:00
parent 3f7e16d270
commit cf69333c6d

View File

@@ -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 = [