mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-13 16:00:13 +00:00
This commit is contained in:
@@ -832,4 +832,13 @@ class GroupCollector implements GroupCollectorInterface
|
||||
|
||||
return $array;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function isReconciled(): GroupCollectorInterface
|
||||
{
|
||||
$this->query->where('source.reconciled', 1)->where('destination.reconciled', 1);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
@@ -48,6 +48,14 @@ interface GroupCollectorInterface
|
||||
*/
|
||||
public function amountIs(string $amount): GroupCollectorInterface;
|
||||
|
||||
|
||||
/**
|
||||
* Only journals that are reconciled.
|
||||
*
|
||||
* @return GroupCollectorInterface
|
||||
*/
|
||||
public function isReconciled(): GroupCollectorInterface;
|
||||
|
||||
/**
|
||||
* Get transactions where the amount is less than.
|
||||
*
|
||||
|
@@ -610,6 +610,9 @@ class OperatorQuerySearch implements SearchInterface
|
||||
case 'any_notes':
|
||||
$this->collector->withAnyNotes();
|
||||
break;
|
||||
case 'reconciled':
|
||||
$this->collector->isReconciled();
|
||||
break;
|
||||
//
|
||||
// amount
|
||||
//
|
||||
|
@@ -26,6 +26,7 @@ return [
|
||||
'operators' => [
|
||||
'user_action' => ['alias' => false, 'needs_context' => true,],
|
||||
'account_id' => ['alias' => false, 'needs_context' => true,],
|
||||
'reconciled' => ['alias' => false, 'needs_context' => false,],
|
||||
'source_account_id' => ['alias' => false, 'needs_context' => true,],
|
||||
'destination_account_id' => ['alias' => false, 'needs_context' => true,],
|
||||
'transaction_type' => ['alias' => false, 'needs_context' => true,],
|
||||
|
Reference in New Issue
Block a user