Add observers for amounts.

This commit is contained in:
James Cole
2024-12-20 05:20:37 +01:00
parent 577d671a0c
commit 1a1baa5cda
10 changed files with 346 additions and 36 deletions

View File

@@ -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;
}
/**