This commit is contained in:
James Cole 2016-11-08 21:34:13 +01:00
parent 3f7e16d270
commit cf69333c6d
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

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