mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-16 14:48:11 +00:00
This commit is contained in:
@@ -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')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user