From b7bfb4ee0cd2c9f1e2e73e0cb869695fcaaab27f Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 20 Feb 2024 19:01:50 +1100 Subject: [PATCH] Set exchange rate to inverse for invoices --- app/Services/Invoice/InvoiceService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Invoice/InvoiceService.php b/app/Services/Invoice/InvoiceService.php index 8f0116bbce52..effe34daceba 100644 --- a/app/Services/Invoice/InvoiceService.php +++ b/app/Services/Invoice/InvoiceService.php @@ -90,7 +90,7 @@ class InvoiceService if ($company_currency != $client_currency) { $exchange_rate = new CurrencyApi(); - $this->invoice->exchange_rate = $exchange_rate->exchangeRate($client_currency, $company_currency, now()); + $this->invoice->exchange_rate = 1/$exchange_rate->exchangeRate($client_currency, $company_currency, now()); } return $this;