mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 02:26:58 +00:00
Fix equation.
This commit is contained in:
@@ -515,11 +515,11 @@ class Steam
|
|||||||
if (null === $preference) {
|
if (null === $preference) {
|
||||||
$singleton->setPreference($key, $currency);
|
$singleton->setPreference($key, $currency);
|
||||||
}
|
}
|
||||||
if ($currency->id === $primary->id) {
|
$current = $amount;
|
||||||
return $amount;
|
if ($currency->id !== $primary->id) {
|
||||||
|
$current = $converter->convert($currency, $primary, $date, $amount);
|
||||||
|
Log::debug(sprintf('Convert %s %s to %s %s', $currency->code, $amount, $primary->code, $current));
|
||||||
}
|
}
|
||||||
$current = $converter->convert($currency, $primary, $date, $amount);
|
|
||||||
Log::debug(sprintf('Convert %s %s to %s %s', $currency->code, $amount, $primary->code, $current));
|
|
||||||
$total = bcadd($current, $total);
|
$total = bcadd($current, $total);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user