Fix aggregate value cast in provider

This commit is contained in:
cmorenov1402
2025-04-30 11:37:06 +02:00
parent 55dd285fe5
commit 322ca10fe4
@@ -24,7 +24,10 @@ class AccountingBalancePointStateProvider implements ProviderInterface
$accounting = $this->getAccounting($parameters);
$period = $this->buildPeriod($parameters);
$aggregate = $parameters->get('aggregate')->getValue() ?? false;
$aggregate = filter_var(
$parameters->get('aggregate')->getValue(false),
FILTER_VALIDATE_BOOL
);
return $this->accountingService->calcBalancePoints($accounting, $period, $aggregate);
}