mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 10:33:30 +00:00
Fix bad conversion
This commit is contained in:
@@ -124,7 +124,7 @@ class ExchangeRateConverter
|
|||||||
private function getRate(TransactionCurrency $from, TransactionCurrency $to, Carbon $date): string
|
private function getRate(TransactionCurrency $from, TransactionCurrency $to, Carbon $date): string
|
||||||
{
|
{
|
||||||
if($this->isPrepared && !$this->noPreparedRates) {
|
if($this->isPrepared && !$this->noPreparedRates) {
|
||||||
Log::debug(sprintf('Return fallback rate from #%d to #%d on %s.', $from, $to, $date));
|
Log::debug(sprintf('Return fallback rate from #%d to #%d on %s.', $from->id, $to->id, $date->format('Y-m-d')));
|
||||||
return $this->fallback[$from->id][$to->id] ?? '0';
|
return $this->fallback[$from->id][$to->id] ?? '0';
|
||||||
}
|
}
|
||||||
// first attempt:
|
// first attempt:
|
||||||
|
Reference in New Issue
Block a user