mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 08:21:34 +02:00
Set exchange rate to inverse for invoices
This commit is contained in:
parent
6fcd321ce2
commit
b7bfb4ee0c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user