Release 2.27 (#5212)

This commit is contained in:
Kevin Papst
2024-12-22 22:50:42 +01:00
committed by GitHub
parent 4fdfb6f478
commit 4332ef95a2
56 changed files with 354 additions and 256 deletions

View File

@@ -18,7 +18,7 @@ final class InvoiceModelProjectHydrator implements InvoiceModelHydrator
{
use BudgetHydratorTrait;
public function __construct(private ProjectStatisticService $projectStatistic)
public function __construct(private readonly ProjectStatisticService $projectStatistic)
{
}
@@ -83,8 +83,9 @@ final class InvoiceModelProjectHydrator implements InvoiceModelHydrator
$prefix . 'invoice_text' => $project->getInvoiceText() ?? '',
];
if ($model->getQuery()?->getEnd() !== null) {
$statistic = $this->projectStatistic->getBudgetStatisticModel($project, $model->getQuery()->getEnd());
$end = $model->getQuery()?->getEnd();
if ($end !== null) {
$statistic = $this->projectStatistic->getBudgetStatisticModel($project, $end);
$values = array_merge($values, $this->getBudgetValues($prefix, $statistic, $model));
}