mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
This commit is contained in:
parent
d49809c939
commit
d8506c4361
@ -119,7 +119,7 @@ class AccountController extends Controller
|
|||||||
|
|
||||||
// see if there is an accompanying start amount.
|
// see if there is an accompanying start amount.
|
||||||
// grab the difference and find the currency.
|
// grab the difference and find the currency.
|
||||||
$startAmount = (string) ($startBalances[$accountId][$currencyId] ?? '0')
|
$startAmount = (string) ($startBalances[$accountId][$currencyId] ?? '0');
|
||||||
$diff = bcsub((string)$endAmount, $startAmount);
|
$diff = bcsub((string)$endAmount, $startAmount);
|
||||||
$currencies[$currencyId] = $currencies[$currencyId] ?? $this->currencyRepository->find($currencyId);
|
$currencies[$currencyId] = $currencies[$currencyId] ?? $this->currencyRepository->find($currencyId);
|
||||||
if (0 !== bccomp($diff, '0')) {
|
if (0 !== bccomp($diff, '0')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user