New method of collecting balance.

This commit is contained in:
James Cole
2024-07-31 13:09:55 +02:00
parent b2954658d8
commit 3560f0388c
10 changed files with 273 additions and 209 deletions

View File

@@ -102,6 +102,7 @@ class PreferencesController extends Controller
* TODO This endpoint is not documented.
*
* Return a single preference by name.
* @param Collection<int, Preference> $collection
*/
public function showList(Collection $collection): JsonResponse
{

View File

@@ -48,7 +48,7 @@ class BalanceController extends Controller
private AccountRepositoryInterface $repository;
private GroupCollectorInterface $collector;
private ChartData $chartData;
private TransactionCurrency $default;
// private TransactionCurrency $default;
public function __construct()
{
@@ -61,7 +61,7 @@ class BalanceController extends Controller
$this->repository->setUserGroup($userGroup);
$this->collector->setUserGroup($userGroup);
$this->chartData = new ChartData();
$this->default = app('amount')->getDefaultCurrency();
// $this->default = app('amount')->getDefaultCurrency();
return $next($request);
}