James Cole 2022-07-23 21:50:16 +02:00
parent d49809c939
commit d8506c4361
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -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')) {