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

@@ -64,8 +64,14 @@ class General extends AbstractExtension
/** @var Carbon $date */
$date = session('end', today(config('app.timezone'))->endOfMonth());
$info = app('steam')->balanceByTransactions($account, $date, null);
return app('steam')->balance($account, $date);
$strings = [];
foreach($info as $currencyId => $balance) {
$strings[] = app('amount')->formatByCurrencyId($currencyId, $balance, false);
}
return implode(', ', $strings);
//return app('steam')->balance($account, $date);
}
);
}