Various code for bills and rules.

This commit is contained in:
James Cole
2018-04-14 09:59:04 +02:00
parent 5862b832d9
commit d8a00f4314
22 changed files with 498 additions and 309 deletions

View File

@@ -54,7 +54,7 @@ class TransactionMatcher
* @return Collection
* @throws \FireflyIII\Exceptions\FireflyException
*/
public function findTransactionsByRule()
public function findTransactionsByRule(): Collection
{
if (0 === count($this->rule->ruleTriggers)) {
return new Collection;
@@ -202,6 +202,10 @@ class TransactionMatcher
$collector = app(JournalCollectorInterface::class);
$collector->setUser(auth()->user());
$collector->setAllAssetAccounts()->setLimit($pageSize)->setPage($page)->setTypes($this->transactionTypes);
$set = $collector->getPaginatedJournals();
Log::debug(sprintf('Found %d journals to check. ', $set->count()));