mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 22:21:42 +00:00
Fix #3740
This commit is contained in:
@@ -347,6 +347,21 @@ class OperatorQuerySearch implements SearchInterface
|
||||
}
|
||||
break;
|
||||
//
|
||||
// cash account
|
||||
//
|
||||
case 'source_is_cash':
|
||||
$account = $this->getCashAccount();
|
||||
$this->collector->setSourceAccounts(new Collection([$account]));
|
||||
break;
|
||||
case 'destination_is_cash':
|
||||
$account = $this->getCashAccount();
|
||||
$this->collector->setDestinationAccounts(new Collection([$account]));
|
||||
break;
|
||||
case 'account_is_cash':
|
||||
$account = $this->getCashAccount();
|
||||
$this->collector->setAccounts(new Collection([$account]));
|
||||
break;
|
||||
//
|
||||
// description
|
||||
//
|
||||
case 'description_starts':
|
||||
@@ -713,4 +728,12 @@ class OperatorQuerySearch implements SearchInterface
|
||||
{
|
||||
$this->limit = $limit;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Account
|
||||
*/
|
||||
private function getCashAccount(): Account
|
||||
{
|
||||
return $this->accountRepository->getCashAccount();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user