mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 12:11:19 +00:00
Respond to currency changes.
This commit is contained in:
@@ -167,7 +167,7 @@ class ExchangeRateConverter
|
||||
|
||||
/** @var null|CurrencyExchangeRate $result */
|
||||
$result = auth()->user()
|
||||
->currencyExchangeRates()
|
||||
?->currencyExchangeRates()
|
||||
->where('from_currency_id', $from)
|
||||
->where('to_currency_id', $to)
|
||||
->where('date', '<=', $date)
|
||||
|
@@ -243,7 +243,7 @@ class AccountBalanceCalculator
|
||||
$object->balance = $balance[0];
|
||||
$object->date = $balance[1];
|
||||
$object->date_tz = $balance[1]?->format('e');
|
||||
$object->save();
|
||||
$object->saveQuietly();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user