mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Add observers for amounts.
This commit is contained in:
@@ -43,10 +43,16 @@ class ExchangeRateConverter
|
||||
private bool $noPreparedRates = false;
|
||||
private array $prepared = [];
|
||||
private int $queryCount = 0;
|
||||
private bool $ignoreSettings = false;
|
||||
|
||||
public function setIgnoreSettings(bool $ignoreSettings): void
|
||||
{
|
||||
$this->ignoreSettings = $ignoreSettings;
|
||||
}
|
||||
|
||||
public function enabled(): bool
|
||||
{
|
||||
return false !== config('cer.enabled');
|
||||
return false !== config('cer.enabled') || true === $this->ignoreSettings;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user