mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 20:16:22 +00:00
New method of collecting balance.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user