mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-27 03:10:32 -06:00
This fixes #395
This commit is contained in:
parent
3f7e16d270
commit
cf69333c6d
@ -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 = [
|
||||||
|
Loading…
Reference in New Issue
Block a user