1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Set exchange rate to inverse for invoices

This commit is contained in:
David Bomba 2024-02-20 19:01:50 +11:00
parent 6fcd321ce2
commit b7bfb4ee0c

View File

@ -90,7 +90,7 @@ class InvoiceService
if ($company_currency != $client_currency) { if ($company_currency != $client_currency) {
$exchange_rate = new CurrencyApi(); $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; return $this;