Various improvs to the report generator.

This commit is contained in:
James Cole
2021-10-30 11:42:35 +02:00
parent a16b6cb2b8
commit 8b81526e54
8 changed files with 177 additions and 17 deletions

View File

@@ -210,10 +210,9 @@ class PopupReport implements PopupReportInterface
// set report accounts + the request accounts:
//$set = $attributes['accounts'] ?? new Collection;
$set = new Collection;
$set->push($account);
//$set->push($account);
$collector->setBothAccounts($set)
$collector->setDestinationAccounts(new Collection([$account]))
->setRange($attributes['startDate'], $attributes['endDate'])
->withAccountInformation()
->withBudgetInformation()
@@ -223,7 +222,6 @@ class PopupReport implements PopupReportInterface
if (null !== $currency) {
$collector->setCurrency($currency);
}
return $collector->getExtractedJournals();
}