James Cole
2022-09-18 12:23:20 +02:00
parent 67126e46b9
commit 9f95d7a76f
4 changed files with 21 additions and 0 deletions

View File

@@ -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;
}
}

View File

@@ -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.
*