Merge branch 'develop' into 5.8-dev

This commit is contained in:
James Cole
2022-10-11 11:07:11 +02:00
3 changed files with 14 additions and 7 deletions

View File

@@ -121,6 +121,7 @@ trait ConvertsExchangeRates
$carbon = Carbon::createFromFormat(DateTimeInterface::ATOM, $date);
$rate = $this->getRate($currency, $native, $carbon);
$rate = '0' === $rate ? '1' : $rate;
Log::debug(sprintf('bcmul("%s", "%s")', (string) $entry, $rate));
$set['entries'][$date] = (float) bcmul((string) $entry, $rate);
}
return $set;