mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 22:21:42 +00:00
This fixes #395
This commit is contained in:
@@ -123,7 +123,7 @@ class SetDestinationAccount implements ActionInterface
|
|||||||
*/
|
*/
|
||||||
private function findExpenseAccount()
|
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)) {
|
if (is_null($account->id)) {
|
||||||
// create new revenue account with this name:
|
// create new revenue account with this name:
|
||||||
$data = [
|
$data = [
|
||||||
|
|||||||
Reference in New Issue
Block a user