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:
parent
6fcd321ce2
commit
b7bfb4ee0c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user