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
fdd93427aa
commit
a0aef5d579
@ -121,6 +121,10 @@ class AccountBalanceCalculator
|
|||||||
$sumAmount = '' === $sumAmount ? '0' : $sumAmount;
|
$sumAmount = '' === $sumAmount ? '0' : $sumAmount;
|
||||||
$sumForeignAmount = '' === $sumForeignAmount ? '0' : $sumForeignAmount;
|
$sumForeignAmount = '' === $sumForeignAmount ? '0' : $sumForeignAmount;
|
||||||
|
|
||||||
|
// at this point SQLite may return scientific notation because why not. Terrible.
|
||||||
|
$sumAmount = app('steam')->floatalize($sumAmount);
|
||||||
|
$sumForeignAmount = app('steam')->floatalize($sumForeignAmount);
|
||||||
|
|
||||||
// first create for normal currency:
|
// first create for normal currency:
|
||||||
$entry = $this->getAccountBalanceByAccount($account, $transactionCurrency);
|
$entry = $this->getAccountBalanceByAccount($account, $transactionCurrency);
|
||||||
|
|
||||||
|
@ -836,6 +836,7 @@ class Steam
|
|||||||
if (!str_contains($value, 'E')) {
|
if (!str_contains($value, 'E')) {
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
Log::debug(sprintf('Floatalizing %s', $value));
|
||||||
|
|
||||||
$number = substr($value, 0, (int)strpos($value, 'E'));
|
$number = substr($value, 0, (int)strpos($value, 'E'));
|
||||||
if (str_contains($number, '.')) {
|
if (str_contains($number, '.')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user