James Cole
2025-02-01 21:14:28 +01:00
parent c5188c503e
commit 5bed081ab9
5 changed files with 5 additions and 0 deletions

View File

@@ -64,6 +64,7 @@ class BillObserver
$bill->native_amount_max = null;
if ($bill->transactionCurrency->id !== $userCurrency->id) {
$converter = new ExchangeRateConverter();
$converter->setUserGroup($bill->user->userGroup);
$converter->setIgnoreSettings(true);
$bill->native_amount_min = $converter->convert($bill->transactionCurrency, $userCurrency, today(), $bill->amount_min);
$bill->native_amount_max = $converter->convert($bill->transactionCurrency, $userCurrency, today(), $bill->amount_max);